Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

1 result for “from:laihaobo”

Converting dollar value (factors) to numeric
laihaobo · Feb 5, 2013 · r-help

Both Greg and David's methods are working fine for me under R version 2.15.2 without warnings. setClass("Currency") setAs("character", "Currency", function(from) as.numeric(gsub("[$,]","",sub("$","",from, fixed=TRUE)))) # method 2: ",|\\$", working as desired setClass("Currency2...

Can't find what you're looking for? Try searching with Google .