R学习笔记之四:数据获取及保存
一、数据console读写:
c(),scan(),edit(x),fix(x),data.entry(x)
二、数据file读写:
1、cat and scan
cat(x,file="x.txt",sep=","):file属性不为null时,保存到getwd()下面
scan("x.txt",sep=","):file属性不为null时,从文件读入
2、save and load
save(x,file="x.Rdata"):
load("x.Rdata"):
3、read.table() and write.table()
read.csv(),read.csv2(),read.dta(),read.spss(),
三、数据Database读写:
四、数据展示
1、数据展示到屏幕:
2、数据展示到图形:
浙公网安备 33010602011771号