Can a C program be written in R programming language?

0 votes
I have a C program which I want to write using R programming language. Is this possible? I have already coded the algorithms in C language, can I directly convert them to R or do I have to build my code again using R?
Jan 4 in Data Analytics by Tyrion anex
• 8,280 points
42 views

3 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Yes, you can convert a C program to an R program. R provides 1000s of packages with pre defined algorithm, you don't even have to code your algorithms, you only have to load the libraries.
answered Jan 4 by Sophie may
• 9,050 points
0 votes

Yes, you can convert c program to R-program easily. For example, you have C programming that you think to change in R programming. you want to call from an R script. Specifically, you wish to pass data from R into the C, and using function call you can function return the results to r environment

syntax:-ComputeFunctionR(ScalarParam, InputVector)

answered Mar 27 by SA
• 1,030 points
0 votes

If you have a algorithm you can easily wirte the code in any language the condition is you may know about the language. Algorithm never changes only implementation changes in different language. So if want to code in R language from c language it is quiet easy unless you may know the R programming language.

answered Apr 9 by anonymous

Related Questions In Data Analytics

0 votes
1 answer

How can I read a .csv file in R language?

read.csv () function is used to read ...READ MORE

answered Jun 11, 2018 in Data Analytics by zombie
• 3,690 points
17 views
0 votes
1 answer

What are the rules to define a variable name in R programming language?

A variable name in R programming language ...READ MORE

answered Sep 7, 2018 in Data Analytics by zombie
• 3,690 points
57 views
0 votes
1 answer

Check if a matrix is diagonalizable in R Programming Language

On a given matrix, a, the first way ...READ MORE

answered Dec 24, 2018 in Data Analytics by Tyrion anex
• 8,280 points
19 views
0 votes
1 answer

How can I delete multiple values from a vector in R?

The %in% operator tells  which elements are ...READ MORE

answered Apr 26, 2018 in Data Analytics by shams
• 3,580 points
50 views
0 votes
1 answer

How to sort a data frame by columns in R?

You can just use the order function ...READ MORE

answered Apr 10, 2018 in Data Analytics by darklord
• 6,140 points
47 views
0 votes
1 answer

How can I perform word stemming in R

The tm package in R provides the stemDocument() function to stem the ...READ MORE

answered Aug 20, 2018 in Data Analytics by ANMOL
• 3,620 points
35 views
0 votes
1 answer

How to know the type of an object?

To find the type of an object ...READ MORE

answered Sep 19, 2018 in Data Analytics by ANMOL
• 3,620 points
20 views
0 votes
1 answer

How do I import document files in R programming

Try the following: read.table("~/SMSSpamCollection", header=TRUE, sep="\t") Change "~/" to the "ptah/to/your/file/" Mess around ...READ MORE

answered Nov 5, 2018 in Data Analytics by Kalgi
• 35,640 points
14 views
0 votes
1 answer

Can we have an if loop inside a for loop in R programming?

You're If loop doesn't have any condition ...READ MORE

answered Dec 21, 2018 in Data Analytics by Sophie may
• 9,050 points
34 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.