N Select a function K in R that does not work - what am I missing?

I tried to get to know the R nChooseK function, but I can't get it to work. I thought this was part of the standard setup (i.e. no extra package required).

Please, help. Here is what I tried:

> nChooseK(10,2) 
  Error: could not find function "nChooseK"
> n<-4;k<-2
> print(nChooseK(n,k)) 
 Error in print(nChooseK(n, k)) : could not find function "nChooseK"

the last was an example that I saw here: R basic nChooseK

+5
source share
2 answers

According to Goran, the function nChooseKis part of R.basic. You can talk about this in the above example by looking at the top of the page:


Rbasic page


"R.basic" , , "R.basic". nChooseK

library(R.basic)

R.basic,

install.packages("R.basic", contriburl="http://www.braju.com/R/repos/")
library(R.basic)

, choose R

choose(37, 12)
#[1] 1852482996
nChooseK(37, 12)
#[1] 1852482996
+6

R.basic, R. , choose().

+12

All Articles