write_file.r
来自「这是07年的大学生建模比赛最为完整的解答 使用了lingo 和R软件」· R 代码 · 共 9 行
R
9 行
write_file<-function(str, D, file="dist.ldt"){
lab1<-paste("Z", str, sep="")
write(c("X1", lab1, "~"), file=file,
ncolumns=length(lab1)+2)
write.table(D, file=file, append =T,
row.names = F, col.names = F)
write("~", file=file, append =T)
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?