[R] read numeric values with thousands seperator from csv file
cavalier33901
cavalier33901 at yahoo.com
Tue Apr 6 22:21:03 CEST 2010
Thanks I tried it with your values and it works, but when I try it with my
values, plugging in "just" (not sure if i'm doing it right):
> as.numeric(gsub("\\$", "", ("just")))
This is what I get:
[1] NA
Warning message:
NAs introduced by coercion
Btw here are the values im wokring with under "just"
[1] $23,060 $124,800 $125,000 $28,140 $24,000 $23,400 $24,000 $149,720
$92,000 $35,000 $35,430 $40,100 $10,000 $25,000
Levels: $10,000 $124,800 $125,000 $149,720 $23,060 $23,400 $24,000 $25,000
$28,140 $35,000 $35,430 $40,100 $92,000
--
View this message in context: http://n4.nabble.com/read-numeric-values-with-thousands-seperator-from-csv-file-tp1477704p1753432.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list