list.save: Save a list to a file

Description Usage Arguments Value Examples

View source: R/list.save.R

Description

Save a list to a file

Usage

1

Arguments

x

The list to save

file

The file for output

type

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

Value

x will be returned.

Examples

1
2
3
4
5
6
7
8
## 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')

## End(Not run)

Example output



rlist documentation built on Sept. 5, 2021, 5:30 p.m.