Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试读取此数据文件。
x<-read.table("mydata",header=FALSE) > mode(x) [1] "list"
我怎样才能把它读成矢量?它可以用 来完成unlist(x),但我想要一个更简单的方法。
unlist(x)
通过scan:
scan
x <- scan("mydata")
够简单吗?