Reputation: 17631
I have a number of R files with an .R
extension. I've tried various ways to see what is inside these file, including Xcode, vim, etc.
What I find is utterly indecipherable. For example, it looks like this Lçæ§o‡dµ’Ò6ÇìùëfiFŒÀ±y2Â8á∫˝É
, but pages of it.
Is it safe to say that these files are fundamentally corrupt? Or should I be using R to open these files to see what's actually in them?
EDIT: I've never worked with a file like this. After using load()
in R, how would I read the data? I have used
> data <- load("~/filename.RData")
> data
The output is [1] "filename"
.
EDIT2: It appears these are gzip files saved with an .R
extension. I can using load()
to read the data into R
. Is there any other way I can access these data files?
Upvotes: 0
Views: 90
Reputation: 1237
"filename" is now loaded and it is stored in an object of the same name. You should be able to see what it is inside by running:
filename
Upvotes: 1