Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to call c function from r?



How to call c function from r?..

Answer / Suvendu Bikash Bhakta

In R, you can call C functions using the .C interface. First, you need to write the C code and compile it into a shared library (.so or .dll depending on your operating system).nnOnce compiled, you can call the C function from R using the `.C()` function with the following format:n```rnresult <- .C("function_name", argument1, argument2, ...)n```nReplace "function_name" with the name of your C function and arguments with the corresponding arguments passed to the C function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

How would you join multiple strings together?

1 Answers  


What makes a valid variable name in R?

1 Answers  


What is a random forest? How do you build and evaluate a random forest in r?

1 Answers  


What is a loop in r?

1 Answers  


Why is R Important?

1 Answers  


How would you fit a linear model over a scatter-plot?

1 Answers  


How to create vectors in r?

1 Answers  


What is the use of abline() function?

1 Answers  


What is apply() function in r?

1 Answers  


Differentiate between k-means clustering and hierarchical clustering?

1 Answers  


What is variance in r?

1 Answers  


Write a custom function in R?

1 Answers  


Categories