How to run a file with .r extension?

0 votes
Here's the location of my file: desktop: C:\Users\sophie\Desktop\progm.r.

The variable path is: C:\Program Files\R\R-3.1.1\bin\

How to run this file?
Apr 29 in Data Analytics by Sophie may
• 9,530 points
29 views

1 answer to this question.

0 votes

Follow the below command:

C:\Program Files\R\R-3.1.1\bin\Rscript.exe C:\Users\sophie\Desktop\progm.r

answered Apr 29 by Tyrion anex
• 8,270 points

Related Questions In Data Analytics

0 votes
1 answer

How to export a graph to .eps file with R?

The easiest way that I could suggest ...READ MORE

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

How can I use R to list all files with a specified extension ?

fls <- list.files(pattern = "\\.dbf$") $ at the ...READ MORE

answered May 10, 2018 in Data Analytics by zombie
• 3,690 points
25 views
0 votes
1 answer

how to run a logistic regression with clustered standard errors in R?

have a look at rms package. lrm is logistic ...READ MORE

answered Nov 6, 2018 in Data Analytics by Kalgi
• 40,480 points
144 views
0 votes
2 answers

How to write lines to a text file in R?

sink("outfile.txt") cat("hello") cat("\n" ...READ MORE

answered May 24 in Data Analytics by anonymous
1,793 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
• 26,020 points
121 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
55 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,480 points
29 views
0 votes
1 answer

R programming: How to pass variables from a r program to mysql function?

To include the R variables called start.date and end.date, you can use paste to ...READ MORE

answered Dec 28, 2018 in Data Analytics by Tyrion anex
• 8,270 points
67 views
0 votes
2 answers