library(rio)
# 该包两个重要函数 import()导入,export()导出
9 最佳推荐-rio包
9.1 导出
export(mtcars,'data/mtcars.csv')
export(mtcars,'data/mtcars.rds')
export(mtcars,'data/mtcars.xlsx')
export(mtcars,'data/mtcars.sav')
export(mtcars,'data/mtcars.sas7bdat')
9.1.1 导入
import('data/mtcars.csv')
import('data/mtcars.rds')
import('data/mtcars.xlsx')
import('data/mtcars.sav')
import('data/mtcars.sav')