powered by
Save a list to a file
list.save(x, file, type = tools::file_ext(file), ...)
The list to save
The file for output
The type of output which, by default, is determined by file extension. Currently supports RData, RDS, JSON, YAML.
Additional parameters passed to the output function
x will be returned.
x
# NOT RUN { x <- lapply(1:5,function(i) data.frame(a=i,b=i^2)) list.save(x, 'list.rds') list.save(x, 'list.rdata') list.save(x, 'list.yaml') list.save(x, 'list.json') # }
Run the code above in your browser using DataLab