Try choose(k,r)
> choose(10,2) [1] 45 JB > -----Original Message----- > From: Mario Morales [mailto:[EMAIL PROTECTED] > Sent: March 19, 2005 5:37 AM > To: [email protected] > Subject: [R] How I calculate nCr with R ? (Como calculo nCr con R? ) > > En espa�ol (In Spanish) > > Necesito calcular la en numeros de combinaciones de n cosas > tomando k al tiempo. > > Como hago eso en R ??? > > Yo escrib� mi propia funci�n pero pienso que de esa forma no es > f�cil para mis estudiantes . > > He estado buscando en la ayuda y no he encontrado informaci�n > sobre una funci�n que calcule eso directamente. Podr�an ayudarme > > > In English (en Ingl�s ) > > I need calculate the combination of n things taking k at time. > > > How do I do that in R ? > > I wrote my own function but in this form isn't easy for my > students. > > Can you help me ? > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
