0

I have multiple CSV files I would like to import into R; then save those as an initState.Rdata file; is that possible?

Currently I'm importing them as follows

Users <- read.csv('/Users/AndyD/Desktop/Data/DeakinUsersData.csv')
PagePaths <- read.csv('/Users/AndyD/Desktop/Data/DeakinPageData.csv')
Goals <- read.csv('/Users/AndyD/Desktop/Data/Deakin_Goals.csv')

Is it possible to import those and include them all in a initState.Rdata?

Maurits Evers
  • 49,617
  • 4
  • 47
  • 68

1 Answers1

1

You can use the save() function for this:

save(Users, PagePaths, Goals, file = "initState.RData")

If you don't mind saving everything in the current session, you can also use save.image():

save.image(file = "initState.RData")
Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360