0

I am trying to import and view data in .RData file at my Windows 7 (x64) machine. I am using this command:

my_df <- load("~path_to_file/my_file.RData")

Data load seems to be fine. But:

head(my_df)

returns:

[1] "dfAllxY"

Can someone help me to resolve this issue?

khajlk
  • 791
  • 1
  • 12
  • 32

1 Answers1

0

Check out head(dfAllxY). The load command doesn't return an object, it returns the names of all the objects it loaded from the RData file since RData file may contain more than one object. Read the ?load help page for more information.

MrFlick
  • 195,160
  • 17
  • 277
  • 295