Hello, Why do I get preceding "X." (that is a and X followed by a period) for negative numbers and an "X" for positive numbers when I read a csv file? Am I stuck with this? If so, how do I convert it to normal numbers?
dat=read.csv(file_path) > dat [1] X0.0 X.0.240432350374 X0.355468069625 X.0.211469972378 X1.1812797415 X.0.227975150826 X0.74834842067 X.1.04923922494 X0.566058942902 X.0.184077147931 [11] X.0.693389240029 X.0.474961946724 X.0.557555716654 X0.374198813899 X0.560620781209 X.0.0609127295732 X0.645337364133 X0.353711785227 X.0.0999146114953 X.0.320711825714 [21] X0.332194935294 X0.513794862516 X0.228124868198 X0.141250108666 X0.879359879038 X0.721652892103 X.1.14723732497 X.0.0871541975062 X0.302181204959 X0.0594492294833 [31] X.0.240723094394 X0.358971714966 X.0.42954330242 X.0.0739978455876 X.0.108806367787 X0.616107131373 X.0.202669947993 X.0.200450609711 X0.15421692014 X.0.0629346641528 [41] X1.16077454571 X.0.100980386545 X.0.457429357325 X0.128929934631 X.0.143442822494 X.1.09050490567 X.0.270230489547 X.0.438100470791 X.0.0666669111547 X0.18367056566 [51] X0.728842996177 X0.221986311856 X.0.793971624503 X.0.258083713185 X0.460468157809 X.0.608552686527 X.0.11024558138 X.0.247014689522 X.0.137467423146 X0.0577133684917 [61] X0.615590960098 X.0.210395786553 X0.372979876654 X.0.763661795812 X1.22248872639 X1.17541364078 X1.34965201031 X.0.0653956005331 X0.446173249776 X0.738548926264 [71] X0.426787360705 X.0.409994430265 X.0.445643675958 ....etc... Thanks ben [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.