0
'인수가 행 수 서로 다른 의미'를, 나는 간단한 파일과 같은R 기능을 R로
data.frame(read.csv2("myFile.csv", header=F, sep="|"), colnames = c("user","product"))
를 읽고, 그리고 난 오류를 얻을
arguments imply differing number of rows: 5462465, 2
때 하고있는 것
data <- read.csv2(myFile.csv, header=F, sep="|")
colnames(data) <- c("user","product")
모두 괜찮습니다. 왜?
추신 : gzcat 및 grep을 사용하여 파일을 검사했으며 각 행에 정확히 동일한 수의 열이 있습니다. – Boris
모든 것을 한 줄로 실행하려면'setNames (read.csv2 (...)), c ("name1", "name2"))' –