Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7941889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:48:11+00:00 2026-06-03T23:48:11+00:00

I was trying to acquaint myself with R’s nChooseK function but I can’t get

  • 0

I was trying to acquaint myself with R’s nChooseK function but I can’t get it to work. I thought it was part of the standard setup (i.e. no additional package needed).

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 one was an example I saw here: R basic nChooseK

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:48:13+00:00Added an answer on June 3, 2026 at 11:48 pm

    As joran mentions the function nChooseK is a part of R.basic. You can tell this from the example you posted by looking at the top of the page:


    Rbasic Page


    You’ll notice the “R.basic” in the curley braces which tells you that that function is a part of the “R.basic” package. So to use nChooseK you’ll first need to load that package

    library(R.basic)
    

    If you don’t have R.basic installed yet then you’ll need to install it

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

    But as noted the choose function in base R does the same thing

    choose(37, 12)
    #[1] 1852482996
    nChooseK(37, 12)
    #[1] 1852482996
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to find some information on this but am unable to get any results
Trying to get this query to work. I'm having issues with brackets I think.
trying to work out how to install zipArchive extension with MAMP, but not having
Trying to send a PHP email the easy way but I cannot work out
Trying to get tag-it to work with an ajax call. Everything works so far.
trying to get a project working on my debian vm but foreman refuses to
Trying to get it to work without any detail knowledge of JQuery. I am
Trying to figure out how I can do this properly. The print_r looks like
Trying to copy the msdn refernce here doesn't work and gives an error I
Trying to get a wildcard search to pick up on any text in org_name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.