write.csv()
はなんだか挙動がヘンであるように思うので
write.table(..., sep = ",", ...)
を使うことに.
> source("convCSV.R") ... (欠測点チェック) ... Warning: (NO LINE) NA at (3, 3.6, 9) Warning: (NO LINE) NA at (3, 4.2, 9) Warning: (NO LINE) NA at (3, 4.8, 9) # output to dataS.csv ... > (ds <- read.csv("dataS.csv")) Xmin Ymin Zmin Xmax Ymax Zmax IX IY IZ L 1 0.3 0.0 2.4 0.6 0.6 3 0 0 0 50 2 0.3 0.6 2.4 0.6 1.2 3 0 1 0 54 3 0.3 1.2 2.4 0.6 1.8 3 0 2 0 43 4 0.3 1.8 2.4 0.6 2.4 3 0 3 0 47 5 0.3 2.4 2.4 0.6 3.0 3 0 4 0 51 6 0.3 3.0 2.4 0.6 3.6 3 0 5 0 61 7 0.3 3.6 2.4 0.6 4.2 3 0 6 0 70 8 0.3 4.2 2.4 0.6 4.8 3 0 7 0 62 9 0.3 4.8 2.4 0.6 5.4 3 0 8 0 73 10 0.3 5.4 2.4 0.6 6.0 3 0 9 0 41 11 0.3 6.0 2.4 0.6 6.6 3 0 10 0 66 12 0.6 0.0 2.4 0.9 0.6 3 1 0 0 46 ...