Skip to content

Creating R file

3 messages · infinite2849 at yahoo.com, David Winsemius, Jeff Newmiller

#
?Hi. I am new to R and confused by some conflicting and contradictory information about it. Where and how do I create a numeric data file with .csv extension for use in R? So numbers meaning numeric data will be separated by commas and will consist of one line of numbers randomly chosen from 1 to 40. Thanks to all who reply. jay28.
Sent from Yahoo Mail. Get the app
#
I don?t understand how the calls to the help function would not answer both aspects:

?write.csv
?sample

? 
David.
#
This sounds like homework, which has been determined to be off-topic on this help list. Please read the Posting Guide before posting. 

That said, it would appear the OP may need to read about data frames in, say, the Introduction to R... and perhaps about matrices... and using the as.* functions to convert between them... in addition to the below-mentioned help pages.