Category: Default
-
Generalized hypergeometric function in R
Just wrote an R function to calculate the generalized hypergeometric function \(pFq\) for real numbers. The function is evaluated based on the series expansion of Pochhammer symbol. The function also allows you to have vectorized input. You can find the code at https://github.com/feng-li/flutils/blob/master/R/math/ghypergeo.R The function depends on the Pochhammer function which is available at https://github.com/feng-li/flutils/blob/master/R/math/pochhammer.R
-
Rscript example
I use Rscript as my prime scripting language to perform some command-line tasks. The reason for this is I don’t know much about bash scripts nor perl language. Writing a script in R is very simple if you know R language. But there are a few things need to consider. How to pass arguments to…