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,270 points
57 views

3 answers to this question.

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,530 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
35 views
0 votes
2 answers

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

The same rules almost follow for all ...READ MORE

answered Aug 26 in Data Analytics by anonymous
• 25,660 points
85 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,270 points
29 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
120 views
0 votes
2 answers

How to sort a data frame by columns in R?

You can use dplyr function arrange() like ...READ MORE

answered Aug 21 in Data Analytics by anonymous
• 25,660 points
119 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
54 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
33 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
• 40,440 points
29 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,530 points
44 views
0 votes
1 answer