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.
data <- read.delim("C:\\test.txt", header = FALSE, sep = "$$$$$") Error in scan(file, what = "", sep = sep, quote = quote, nlines = 1, quiet = TRUE, : invalid 'sep' value: must be one byte
なぜこのような制限があるのですか?私はそれを克服することができますか?
これが潜在的な解決策です。
これがファイルの行のように見えると仮定します
1$$$$$2$$$$$3$$$$$4
以下は、変数が文字として格納されたマトリックスを作成します。
do.call(rbind,strsplit(readLines('test.txt'),'$$$$$',fixed=T))