[R] Strings from different locale
Phil Spector
spector at stat.berkeley.edu
Tue Nov 2 17:27:31 CET 2010
Steven -
Does typing
Sys.setlocale('LC_ALL','C')
before the offending command suppress the message?
- Phil Spector
Statistical Computing Facility
Department of Statistics
UC Berkeley
spector at stat.berkeley.edu
On Mon, 1 Nov 2010, steven mosher wrote:
> I'm doing some test processing of a cvs file that appears to use a different
> locale
> from my machine.
>
> I get the following warning:
>
> input string 1 is invalid in this locale
>
> My locale is US. Is this simply a matter of changing my locale to 'all;
> locales?
>
> I don't know what locale the string is in, is there a way to detect this or
> translate
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
More information about the R-help
mailing list