R语言里read.table的问题
答案:2 悬赏:60
解决时间 2021-02-13 11:47
- 提问者网友:前事回音
- 2021-02-12 19:42
R语言里read.table的问题
最佳答案
- 二级知识专家网友:滚出爷的世界
- 2021-02-12 19:52
model' => $model, // Your model
attribute' => 'news_date', // Attribute for input
options' => array(
dateFormat' => 'yy-mm-dd',
changeYear'=> 'true',
changeMonth'=> 'true',
yearRange'=> '1900:2099',
showOn' => 'both',
buttonText' => 'Click',
)
attribute' => 'news_date', // Attribute for input
options' => array(
dateFormat' => 'yy-mm-dd',
changeYear'=> 'true',
changeMonth'=> 'true',
yearRange'=> '1900:2099',
showOn' => 'both',
buttonText' => 'Click',
)
全部回答
- 1楼网友:转身后的回眸
- 2021-02-12 20:08
先用read.table读进来,再用names()来改,再write.table写出去。
x <- read.table("d:/sheet.txt", header = t)
names(x) <- c(...) # c(...) 是新的表头
write.table(x, file = "d:/newsheet.txt",...)
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯