ヘッダー名に「X」が付いている理由がわかりません。quote="" を使用してインポートするときのプレフィックス。コードは次のとおりです。
xhead = read.csv("~/Desktop/dbdump/users.txt", na.strings = "\\N", quote="", nrows = 1000)
それは私に与えます:
names(xhead)
[1] "X.userId." "X.fullName." "X.email." "X.password."
[5] "X.activated." "X.registrationDate." "X.locale." ...
一方:
yhead = read.csv("~/Desktop/dbdump/users.txt", na.strings = "\\N", nrows = 1000)
names(yhead)
[1] "userId" "fullName" "email" "password"
[5] "activated" "registrationDate" "locale" ...
私が quote="" を持っている理由は、おそらく私の 15000 レコードに埋もれていたために、レコードが切り捨てられていたからです。
私のデータファイルは次のようになります。
"userId", "fullName","email","password","activated","registrationDate","locale","notifyOnUpdates","lastSyncTime","plan_id","plan_period_months","plan_price","plan_exp_date","plan_is_trial","plan_is_trial_used","q_hear","q_occupation","pp_subid","pp_payments","pp_since","pp_cancelled","apikey"
"2","Adam Smith","a@mail.com","*****","1","2004-07-23 14:19:32","en_US","1","2011-04-07 07:29:17","3",\N,\N,\N,"0","1",\N,\N,\N,\N,\N,\N,"d7734dce-4ae2-102a-8951-0040ca38ff83"