Displaying 2 results from an estimated 2 matches for "commata".
2012 Aug 22
4
gsub -> replace substring in column
...plete newbie to R, so it's possible my question was asked a thousand times before, but I don't get it :-(
I imported a CSV file via:
x=read.csv("test.csv",header=TRUE,sep="\t")
In a column there are values with the dot-character (".") I want to replace with a commata:
> x[9]
?????????????????? V16
1???????? GPS LATITUDE
2??? 53.51982466427600
3?? 51.520379571037000
4?? 53.520745152837800
5?? 51.521750487103766
6??? 53.52067987059652
7?? 53.519504773664345
8??? 51.51861690180330
9?? 51.519100010776675
10?? 51.51905431150669
11??? 51.5193415632712
12?? 53.519...
2003 Sep 10
1
scan() problem
Dear R-helpers,
I have to read some large csv-files into R (30 - 100MB).
Since reading with read.csv leads to "memory exhausted", I tried
with scan(), skipping not needed columns by NULL-elements in
"what".
When these skipped elements are quoted strings with commata inside,
R interprets each such quoted comma as element separator
leading to wrong records in the rest of the line.
A little test will show what I mean. I have the following "test.csv":
"col.A","col.B","col.C","col.D"
1,"quoted string",&q...