Set
header=F in read.csv()
Il mer 2 apr 2025, 18:25 Pablo Fisichella <[email protected]> ha
scritto:
> Dear all,
>
> I digitized 3D landmarks (n=299) using the software Checkpoint and
> exported the files as .csv. I'm trying to upload multiple files in .csv
> format using the function "read.csv.folder" from the Morpho package, or a
> single file using the function "readLandmarks.csv" from the same package.
> However, the issue is that the x, y, and z coordinates from the first
> landmark are not uploaded, while only the other 298 points are included,
> and NAs are introduced in the last row.
>
> The code I'm using is:
>
> landmark.array <- read.csv.folder("path", 1:299, y = 4:6, rownames = NULL,
> header = TRUE,
> dec = ".", sep = ",", pattern = "csv",
> addSpec = NULL, back = TRUE)
> This is the result:
>
> , , Ind1
>
> X Y Z
> 1 -2.18000000 0.237566000 5.2655400
> 2 -8.69000000 -6.650000000 1.2601890
> 3 3.77826400 -8.630000000 4.2642350
> 4 -7.99000000 -1.180000000 1.6310280
> 5 4.34564100 -2.930000000 4.6177230
> 6 -8.97000000 -7.350000000 0.6072258
> 7 -8.98000000 -8.300000000 1.2513500
> 8 3.99086800 -9.970000000 3.8588860
> 9 4.24589300 -9.110000000 3.3048690
> 10 3.95688200 -9.990000000 3.8555440
> 11 3.84379100 -10.000000000 4.3102960
> 12 3.26217500 -10.100000000 4.5509180
> 13 2.37966200 -10.100000000 4.7165460
> 14 1.34776000 -10.100000000 4.8121060
> 15 0.23383380 -9.990000000 4.8329710
> 16 -0.93400000 -10.000000000 4.7235750
> 17 -2.14000000 -10.300000000 4.5075430
> 18 -3.31000000 -10.300000000 4.2902630
> 19 -4.40000000 -10.000000000 4.0897090
> 20 -5.40000000 -9.460000000 3.8938110
> 21 -6.30000000 -9.120000000 3.6209790
> 22 -7.08000000 -8.910000000 3.2707120
> 23 -7.74000000 -8.740000000 2.8410040
> 24 -8.32000000 -8.630000000 2.3211320
> 25 -8.80000000 -8.530000000 1.7538540
> 26 -8.96000000 -8.310000000 1.2594320
> 27 4.25949900 -9.700000000 3.9731930
> 28 3.70783000 -10.100000000 4.4555560
> 29 2.75185600 -10.200000000 4.7467360
> 30 1.69306400 -10.100000000 4.9488820
> 31 0.66578200 -10.100000000 5.0655640
> 32 -0.37400000 -9.900000000 5.0958600
> 33 -1.40000000 -10.100000000 5.0577690
> 34 -2.46000000 -10.300000000 4.9589680
> 35 -3.52000000 -10.200000000 4.8004170
> 36 -4.50000000 -9.990000000 4.5865970
> 37 -5.37000000 -9.560000000 4.3144640
> 38 -6.15000000 -9.240000000 3.9876750
> 39 -6.88000000 -9.010000000 3.5826820
> 40 -7.57000000 -8.800000000 3.0799070
> 41 -8.27000000 -8.630000000 2.4552900
> 42 -8.96000000 -8.420000000 1.7132720
> 43 -9.28000000 -7.630000000 0.9160942
> 44 4.28558000 -9.380000000 4.0822780
> 45 3.80255400 -9.530000000 4.8178280
> 46 2.87347100 -9.910000000 5.2712720
> 47 1.66577000 -10.100000000 5.5316360
> 48 0.49480790 -10.100000000 5.6795720
> 49 -0.62500000 -9.940000000 5.6958760
> 50 -1.67000000 -9.830000000 5.6549180
> 51 -2.70000000 -9.770000000 5.5685380
> 52 -3.67000000 -9.630000000 5.4051990
> 53 -4.60000000 -9.470000000 5.1907800
> 54 -5.47000000 -9.260000000 4.9037640
> 55 -6.28000000 -9.070000000 4.5386360
> 56 -7.07000000 -8.870000000 4.0745110
> 57 -7.86000000 -8.620000000 3.4827130
> 58 -8.63000000 -8.250000000 2.7449090
> 59 -9.20000000 -7.720000000 1.9071930
> 60 -9.10000000 -7.040000000 0.9867042
> 61 4.10885900 -9.000000000 4.1947880
> 62 3.01131600 -8.840000000 4.8753070
> 63 1.93227000 -8.780000000 5.2088910
> 64 1.02626600 -8.810000000 5.5867010
> 65 0.02446002 -8.730000000 5.7317640
> 66 -0.94700000 -8.530000000 5.7142420
> 67 -1.88000000 -8.560000000 5.7892050
> 68 -2.80000000 -8.530000000 5.7559490
> 69 -3.70000000 -8.460000000 5.6377850
> 70 -4.52000000 -8.240000000 5.3832730
> 71 -5.31000000 -8.100000000 5.1187110
> 72 -6.07000000 -7.980000000 4.7943710
> 73 -6.80000000 -7.840000000 4.3558030
> 74 -7.50000000 -7.650000000 3.7806240
> 75 -8.05000000 -7.370000000 3.0464650
> 76 -8.61000000 -7.130000000 2.2179280
> 77 -8.89000000 -6.830000000 1.1045020
> 78 3.75444700 -8.620000000 4.3028460
> 79 2.51529100 -8.420000000 4.8644000
> 80 1.56739500 -8.270000000 5.2821570
> 81 0.68271470 -8.180000000 5.6998430
> 82 -0.27000000 -8.030000000 5.8278500
> 83 -1.17000000 -7.940000000 5.9681840
> 84 -2.05000000 -7.900000000 6.0620920
> 85 -2.91000000 -7.820000000 6.0226410
> 86 -3.74000000 -7.680000000 5.8630720
> 87 -4.50000000 -7.520000000 5.6175140
> 88 -5.23000000 -7.380000000 5.3332920
> 89 -5.91000000 -7.240000000 4.9526780
> 90 -6.60000000 -7.160000000 4.5310050
> 91 -7.23000000 -7.030000000 3.9443510
> 92 -7.78000000 -6.890000000 3.2141910
> 93 -8.31000000 -6.770000000 2.3801570
> 94 -8.69000000 -6.650000000 1.2574760
> 95 3.30150000 -8.280000000 4.3341590
> 96 2.19530300 -7.990000000 4.8782050
> 97 1.35706400 -7.790000000 5.5020470
> 98 0.45563390 -7.650000000 5.9144540
> 99 -0.45600000 -7.500000000 6.1137970
> 100 -1.33000000 -7.370000000 6.2494060
> 101 -2.17000000 -7.250000000 6.2873130
> 102 -2.99000000 -7.140000000 6.2416260
> 103 -3.76000000 -7.010000000 6.0900520
> 104 -4.49000000 -6.890000000 5.8684410
> 105 -5.18000000 -6.780000000 5.5725440
> 106 -5.82000000 -6.670000000 5.1629830
> 107 -6.47000000 -6.600000000 4.6995610
> 108 -7.11000000 -6.540000000 4.1244410
> 109 -7.65000000 -6.470000000 3.3780680
> 110 -8.13000000 -6.430000000 2.5233760
> 111 -8.50000000 -6.430000000 1.4426130
> 112 2.97829900 -7.820000000 4.3988980
> 113 2.03217000 -7.500000000 5.0857930
> 114 1.18382200 -7.280000000 5.7606320
> 115 0.29581110 -7.110000000 6.2103070
> 116 -0.59600000 -6.930000000 6.3823580
> 117 -1.44000000 -6.770000000 6.5033250
> 118 -2.25000000 -6.620000000 6.5101180
> 119 -3.03000000 -6.480000000 6.4460000
> 120 -3.77000000 -6.370000000 6.3107120
> 121 -4.47000000 -6.270000000 6.0932970
> 122 -5.14000000 -6.190000000 5.7995190
> 123 -5.78000000 -6.120000000 5.4028020
> 124 -6.39000000 -6.080000000 4.8908120
> 125 -7.01000000 -6.060000000 4.2984190
> 126 -7.56000000 -6.040000000 3.5404370
> 127 -8.06000000 -6.050000000 2.6823080
> 128 -8.40000000 -6.110000000 1.6489780
> 129 2.77299200 -7.310000000 4.5539250
> 130 1.91551200 -7.000000000 5.3642300
> 131 1.07253300 -6.760000000 6.0986120
> 132 0.18507230 -6.540000000 6.4596450
> 133 -0.68000000 -6.330000000 6.6232190
> 134 -1.50000000 -6.130000000 6.6832550
> 135 -2.28000000 -5.970000000 6.6998620
> 136 -3.03000000 -5.830000000 6.6128910
> 137 -3.74000000 -5.720000000 6.4739280
> 138 -4.42000000 -5.630000000 6.2608390
> 139 -5.09000000 -5.580000000 5.9735130
> 140 -5.74000000 -5.550000000 5.6024800
> 141 -6.35000000 -5.540000000 5.0869210
> 142 -6.95000000 -5.560000000 4.4677590
> 143 -7.48000000 -5.600000000 3.7069780
> 144 -8.00000000 -5.660000000 2.8466630
> 145 -8.33000000 -5.770000000 1.8582010
> 146 2.66770300 -6.810000000 4.7262430
> 147 1.86144800 -6.510000000 5.6374420
> 148 1.01052700 -6.220000000 6.2719550
> 149 0.13896630 -5.950000000 6.5830020
> 150 -0.70200000 -5.700000000 6.7505190
> 151 -1.50000000 -5.490000000 6.8400020
> 152 -2.26000000 -5.310000000 6.8188040
> 153 -2.99000000 -5.170000000 6.7217130
> 154 -3.68000000 -5.060000000 6.5612970
> 155 -4.36000000 -4.990000000 6.3690760
> 156 -5.02000000 -4.950000000 6.0887320
> 157 -5.67000000 -4.950000000 5.7230390
> 158 -6.31000000 -4.970000000 5.2366770
> 159 -6.90000000 -5.030000000 4.6082540
> 160 -7.43000000 -5.120000000 3.8506270
> 161 -7.94000000 -5.240000000 3.0098780
> 162 -8.27000000 -5.400000000 2.0474690
> 163 2.68803800 -6.330000000 4.8775010
> 164 1.90268600 -6.020000000 5.7836710
> 165 1.05038800 -5.670000000 6.3662480
> 166 0.18388930 -5.350000000 6.6590510
> 167 -0.64700000 -5.070000000 6.8431360
> 168 -1.44000000 -4.830000000 6.9117180
> 169 -2.19000000 -4.640000000 6.8782390
> 170 -2.91000000 -4.500000000 6.7445040
> 171 -3.60000000 -4.400000000 6.6120310
> 172 -4.27000000 -4.330000000 6.4204160
> 173 -4.94000000 -4.310000000 6.1494530
> 174 -5.61000000 -4.320000000 5.7892010
> 175 -6.25000000 -4.370000000 5.3065590
> 176 -6.86000000 -4.470000000 4.6930880
> 177 -7.38000000 -4.600000000 3.9471420
> 178 -7.89000000 -4.760000000 3.1285350
> 179 -8.24000000 -4.970000000 2.2044620
> 180 2.82702400 -5.830000000 4.9467000
> 181 2.05371100 -5.500000000 5.8308200
> 182 1.19460400 -5.110000000 6.3915270
> 183 0.31641750 -4.740000000 6.6787820
> 184 -0.51800000 -4.430000000 6.8774210
> 185 -1.31000000 -4.180000000 6.9387020
> 186 -2.07000000 -3.980000000 6.8780140
> 187 -2.79000000 -3.830000000 6.7569550
> 188 -3.48000000 -3.730000000 6.6070700
> 189 -4.16000000 -3.670000000 6.3980770
> 190 -4.85000000 -3.660000000 6.1323900
> 191 -5.54000000 -3.680000000 5.7833840
> 192 -6.20000000 -3.750000000 5.3143680
> 193 -6.81000000 -3.870000000 4.7064390
> 194 -7.35000000 -4.030000000 3.9822400
> 195 -7.85000000 -4.240000000 3.1729150
> 196 -8.22000000 -4.480000000 2.3136000
> 197 3.08097900 -5.320000000 4.9822890
> 198 2.29895800 -4.970000000 5.8333040
> 199 1.41497200 -4.530000000 6.3506440
> 200 0.52100050 -4.130000000 6.6261750
> 201 -0.32900000 -3.790000000 6.8034410
> 202 -1.13000000 -3.510000000 6.8966640
> 203 -1.90000000 -3.310000000 6.8182760
> 204 -2.62000000 -3.160000000 6.6941330
> 205 -3.34000000 -3.060000000 6.5647290
> 206 -4.05000000 -3.000000000 6.3470340
> 207 -4.76000000 -2.990000000 6.0664830
> 208 -5.47000000 -3.030000000 5.7073250
> 209 -6.15000000 -3.110000000 5.2333560
> 210 -6.78000000 -3.250000000 4.6464220
> 211 -7.32000000 -3.440000000 3.9304620
> 212 -7.83000000 -3.670000000 3.1472680
> 213 -8.21000000 -3.930000000 2.3631640
> 214 3.39223900 -4.800000000 4.9659660
> 215 2.60032300 -4.430000000 5.7800730
> 216 1.68895800 -3.940000000 6.2552800
> 217 0.77682770 -3.510000000 6.5265930
> 218 -0.08230000 -3.140000000 6.7131680
> 219 -0.89800000 -2.840000000 6.8060150
> 220 -1.68000000 -2.640000000 6.7059600
> 221 -2.42000000 -2.490000000 6.5855740
> 222 -3.17000000 -2.370000000 6.4732960
> 223 -3.91000000 -2.320000000 6.2396420
> 224 -4.64000000 -2.320000000 5.9223800
> 225 -5.38000000 -2.370000000 5.5366260
> 226 -6.08000000 -2.480000000 5.0589720
> 227 -6.73000000 -2.630000000 4.4890640
> 228 -7.29000000 -2.840000000 3.8031080
> 229 -7.79000000 -3.090000000 3.0483220
> 230 -8.17000000 -3.350000000 2.3356600
> 231 3.71774600 -4.280000000 4.9254030
> 232 2.92679700 -3.880000000 5.6861150
> 233 1.99234100 -3.350000000 6.1143080
> 234 1.06585400 -2.890000000 6.3607580
> 235 0.20066790 -2.500000000 6.5325130
> 236 -0.61700000 -2.160000000 6.6705480
> 237 -1.41000000 -1.940000000 6.6024580
> 238 -2.19000000 -1.790000000 6.4638170
> 239 -2.96000000 -1.680000000 6.3001770
> 240 -3.74000000 -1.640000000 6.0410610
> 241 -4.52000000 -1.660000000 5.6940880
> 242 -5.28000000 -1.730000000 5.2799060
> 243 -5.99000000 -1.850000000 4.7980760
> 244 -6.67000000 -2.010000000 4.2535300
> 245 -7.25000000 -2.240000000 3.6009800
> 246 -7.74000000 -2.510000000 2.8840790
> 247 -8.13000000 -2.770000000 2.2342210
> 248 3.97118700 -3.770000000 4.8390360
> 249 3.22193700 -3.320000000 5.5322630
> 250 2.30483700 -2.750000000 5.9389680
> 251 1.38410000 -2.270000000 6.1664470
> 252 0.53003250 -1.850000000 6.3445430
> 253 -0.29500000 -1.500000000 6.4360500
> 254 -1.11000000 -1.280000000 6.3516530
> 255 -1.90000000 -1.120000000 6.2129660
> 256 -2.72000000 -0.998000000 6.0384500
> 257 -3.55000000 -0.970000000 5.7457130
> 258 -4.37000000 -1.010000000 5.3679390
> 259 -5.14000000 -1.120000000 4.9263980
> 260 -5.89000000 -1.250000000 4.4499220
> 261 -6.60000000 -1.420000000 3.9335270
> 262 -7.20000000 -1.660000000 3.3298900
> 263 -7.69000000 -1.940000000 2.6706230
> 264 -8.08000000 -2.210000000 2.0644670
> 265 4.11903900 -3.300000000 4.6961930
> 266 3.46500100 -2.770000000 5.3423200
> 267 2.59829700 -2.160000000 5.7209770
> 268 1.72666800 -1.640000000 5.9567510
> 269 0.89305940 -1.190000000 6.1180350
> 270 0.06544720 -0.846000000 6.1472300
> 271 -0.75300000 -0.621000000 6.0545990
> 272 -1.57000000 -0.491000000 5.8699780
> 273 -2.44000000 -0.369000000 5.6678410
> 274 -3.33000000 -0.325000000 5.3729640
> 275 -4.20000000 -0.369000000 4.9944420
> 276 -5.00000000 -0.512000000 4.5231720
> 277 -5.78000000 -0.665000000 4.0474330
> 278 -6.50000000 -0.854000000 3.5439690
> 279 -7.12000000 -1.100000000 2.9874890
> 280 -7.64000000 -1.390000000 2.4052130
> 281 -8.04000000 -1.670000000 1.8520060
> 282 4.34296300 -2.920000000 4.6258990
> 283 3.62177200 -2.200000000 5.1395670
> 284 2.84145700 -1.550000000 5.4662790
> 285 2.06232900 -1.020000000 5.6505990
> 286 1.29929700 -0.591000000 5.7613550
> 287 0.51633110 -0.250000000 5.7881260
> 288 -0.31100000 0.007965269 5.7201490
> 289 -1.19000000 0.155720400 5.5293150
> 290 -2.12000000 0.252159300 5.2654910
> 291 -3.12000000 0.323921600 4.9478560
> 292 -4.13000000 0.283673000 4.5344500
> 293 -5.06000000 0.064145830 3.9873830
> 294 -5.95000000 -0.164000000 3.4330840
> 295 -6.74000000 -0.415000000 2.8827030
> 296 -7.36000000 -0.693000000 2.3482680
> 297 -7.77000000 -0.971000000 1.8882020
> 298 -8.00000000 -1.190000000 1.6149230
> 299 NA NA NA
>
>
> The same issue occurs when I try to upload a single file using the
> following line:
>
> readLandmarks.csv("path/Ind1.csv", 1:299, y = 4:6, rownames = NULL, header
> = TRUE,
> dec = ".", sep = ",")
>
> I have attached an example of the file I tried to upload in the second
> case. As you can see, the coordinates for the first landmark
> (-3.34E+00,-1.03E+01,4.279302e+00) were not uploaded in R.
>
> Can somebody tell me where the error is?
>
> Thanks in advance,
>
> Paolo
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Morphmet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/morphmet2/CANPrD1jrqM2CMGGNJsqJrmvCXOg61pZxyVrtv%2B33oq14RrSW9w%40mail.gmail.com
> <https://groups.google.com/d/msgid/morphmet2/CANPrD1jrqM2CMGGNJsqJrmvCXOg61pZxyVrtv%2B33oq14RrSW9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Morphmet" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/morphmet2/CAAdPgfM8K%2ByYWxtYpWP-iY75FrUw5rAr%3DfgACDzUErcJ%3DkvFww%40mail.gmail.com.