第2个回答 2019-01-10
先用read.table读进来,再用names()来改,再write.table写出去。
x <- read.table("d:/sheet.txt", header = t)
names(x) <- c(...) # c(...) 是新的表头
write.table(x, file = "d:/newsheet.txt",...)
第3个回答 2015-07-23
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',
)