Displaying 20 results from an estimated 2758 matches for "lc_numeric".
2003 Dec 05
1
How to use Sys.setlocale("LC_NUMERIC")?
Can you help me to use Sys.setlocale("LC_NUMERIC", "cs_CZ") (comma as a
decimal point) in some useful way, without all the workarounds?
After switching to Sys.setlocale("LC_NUMERIC", "cs_CZ"):
-- How do I set attributes in read.csv2() not to get columns of real
numbers (decimal point = comma, field separator =...
2006 Oct 26
1
Error: invalid multibyte string
...byte string
...
> parse(text='"\\xFF"')
Error: invalid multibyte string
However,
cat("\x7F\n\x80\n...\xFF\n")
works. Using R --vanilla.
SYSTEMS GIVING THE ERROR:
> sessionInfo()
R version 2.4.0 (2006-10-03)
x86_64-unknown-linux-gnu
locale:
LC_CTYPE=en_AU.UTF-8;LC_NUMERIC=C;LC_TIME=en_AU.UTF-8;LC_COLLATE=en_AU.UTF-8;LC_MONETARY=en_AU.UTF-8;LC_MESSAGES=en_AU.UTF-8;LC_PAPER=en_AU.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_AU.UTF-8;LC_IDENTIFICATION=C
R version 2.4.0 Patched (2006-10-03 r39576)
i686-pc-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;LC_NUMER...
2005 Apr 17
3
RFC: hexadecimal constants and decimal points
...and I can see no difficulty in allowing the same conversions when parsing
as when coercing. This would have the side effect that 100 would be
integer (but the coercion rules would come into play) but
200000000000000000 would be double. And x <-0xce80 would be valid.
3) We do allow setting LC_NUMERIC, but it partially breaks R if the
decimal point is not ".". (I know of no locale in which it is not "." or
",", and we cannot allow "," as part of numeric constants when parsing.)
E.g.:
> Sys.setlocale("LC_NUMERIC", "fr_FR")
[1] &q...
2012 Aug 14
0
as.numeric and as.character with locale using comma as separator
Dear all,
summary:
My LC_NUMERIC is changed from C to de_DE by library (qtbase).
[which shouldn't happen according to the warning when setting it back
manually].
I posted an issue at their github repository, but maybe the behaviour is
a bit more of general interest.
However, if LC_NUMERIC is changed, as.character () uses the...
2016 Apr 05
2
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
...m in linux (see below)
WINDOWS **************
> sessionInfo()
R version 3.3.0 beta (2016-04-04 r70420)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 10586)
locale:
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252
[3] LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
> sessionInfo()
R version 3.2.2 Patched (2015-09-29 r69441)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 10240)
locale:
[1] LC_COLLAT...
2008 Apr 04
2
format numbers using 1000 separator
Hi,
Does anyone know how one could format numbers using 1000 separator in R? For
example, format 1000 as 1,000 and 100000 as 100,000, etc.
Thanks,
--
Tom
[[alternative HTML version deleted]]
2002 Feb 26
1
Locale problems on Solaris
Hi there.
With OpenSSH 3.0.2p1 on Solaris, the locale does not appear to get set
correctly at login, as it does with, say telnet:
/etc/default/init:
TZ=GB
CMASK=022
LC_COLLATE=en_GB.ISO8859-1
LC_CTYPE=en_GB.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-1
LC_NUMERIC=en_GB.ISO8859-1
LC_TIME=en_GB.ISO8859-1
When logging in via SSH:
scot /home/scot > locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
When logging in via telnet:
scot...
2017 Jun 23
2
LC_TIME not set correctly by Sys.setlocale() ?
...uses the old
settings. The only way to update this is by specifically using LC_TIME.
Is this a bug or am I overlooking something?
Example:
> Sys.setlocale(locale = "French_Belgium")
[1]
"LC_COLLATE=French_Belgium.1252;LC_CTYPE=French_Belgium.1252;LC_MONETARY=French_Belgium.1252;LC_NUMERIC=C;LC_TIME=French_Belgium.1252"
> date <- "Dec-11"
> as.Date(date, format = "%b-%d")
[1] NA # expected
> Sys.setlocale(locale = "English_United Kingdom")
[1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United
Kingdom.1252;LC_MONETAR...
2014 Nov 22
3
R string comparisons may vary with platform (plain text)
...ot some setting I?m unaware of,
maybe someone should look into it. Sorry I haven?t taken the time to read
the source code myself.
Thanks,
Stuart
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Platform: x86_64-unknown-linux-gnu (64-bit)
Sys.getlocale()
[1]
"LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF
-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_
NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICA
TION=C"
"-1" > "1"
[1] TRUE
"-1" <"1"
[1] FALSE
&q...
2007 Oct 10
2
download.file not working
...whosis/whostat2006_demographics.xls'
Content type 'application/vnd.ms-excel' length 77824 bytes
opened URL
downloaded 76Kb
> sessionInfo()
R version 2.5.0 (2007-04-23)
i386-pc-mingw32
locale:
LC_COLLATE=Swedish_Sweden.1252;LC_CTYPE=Swedish_Sweden.1252;LC_MONETARY=Swedish_Sweden.1252;LC_NUMERIC=C;LC_TIME=Swedish_Sweden.1252
attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[7] "base"
other attached packages:
RWinEdt
"1.7-5"
> Sys.getlocale()
[1] "LC_COL...
2009 Aug 21
1
sessionInfo() fails to correctly detect locale settings
...m not sure whether this is
important, but I preferred to drop a message. In the R output below,
some entries that should have been "en_GB.UTF-8" are presented as "C".
Regards
Liviu
> sessionInfo()
R version 2.9.1 (2009-06-26)
x86_64-pc-linux-gnu
locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached...
2013 Feb 04
4
rJava works with 32-bit but not 64
...9; not found
Error: package/namespace load failed for 'rJava'
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
>
##########################
> library(rJava)
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_CO...
2019 Oct 07
2
R from EPEL 8 missing dependency on glibc-langpack
I think R from EPEL 8 is missing a dependency on glibc-langpack-en or
similar. Testing with the new CentOS 8 docker image:
docker run -it centos:8 bash
And then in docker:
yum install epel-release
yum config-manager --set-enabled PowerTools
yum install R-devel
Installation succeeds but when I start R:
During startup - Warning messages:
1: Setting LC_CTYPE failed, using
2009 Dec 29
1
problem reading from serial connection since 2.10.0
...pecified
differently when calling scan since 2.10.0. Any ideas what this behaviour comes from?
Here the sessionInfo() for the three cases I have tested:
R version 2.9.2 (2009-08-24)
i386-pc-mingw32
locale:
LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
respectively:
R version 2.10.1 (2009-12-14)
i386-pc-mingw32
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252...
2012 Nov 19
6
tcltk freezing using MS Windows for R-2.14+
...ute
Melbourne, Australia.
Some sessionInfo() outputs:
Win7-64bit-R-2.15.2 testGUI() fails intermittently.
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=C
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] tcltk stats graphics grDevices utils datasets methods
base
Linux x64-R-2.15.2. testGUI() works always
R version 2.15.2 (2012-10-26)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8...
2010 Feb 12
2
Unexpected behaviour of x[i] when i is a matrix, on Windows
...b B
# FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE
sessionInfo()
R version 2.10.0 (2009-10-26)
i386-pc-mingw32
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
-----------On Linux--------------
x = matrix(FALSE, nrow=3, ncol=3)
colnames(x) = LETTERS[1:3]
rownames(x) = letters[1:3]
x
# A B C
# a FALSE FALSE...
2010 Feb 11
2
Suprising behavior of paste or cat?
..., the
resulting file contains only the "?" character. ?This occurs in:
R version 2.10.0 (2009-10-26) & R version 2.10.1 (2009-12-14)
i386-pc-mingw32
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base
but not in...
R version 2.7.1 (2008-06-23)
x86_64-pc-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_...
2011 Mar 30
2
problem with png() and large dimensions on some 32-bit Windows machines
...3) :
opening device failed
>
On the following system:
> sessionInfo()
R version 2.13.0 alpha (2011-03-18 r54865)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
This is a Windows Server 2003 R2 Enterprise Edition Service Pack 2 system
with 3GB of RAM.
On another system, the command works fine. Info from that system:
>...
2017 Jun 23
0
LC_TIME not set correctly by Sys.setlocale() ?
...bstitute
is used and its handing of non-English names is not done through the
OS's locale mechanism.
> Example:
>
>> Sys.setlocale(locale = "French_Belgium")
> [1]
> "LC_COLLATE=French_Belgium.1252;LC_CTYPE=French_Belgium.1252;LC_MONETARY=French_Belgium.1252;LC_NUMERIC=C;LC_TIME=French_Belgium.1252"
>
>> date <- "Dec-11"
>
>> as.Date(date, format = "%b-%d")
> [1] NA # expected
>
>> Sys.setlocale(locale = "English_United Kingdom")
> [1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=E...
2012 Aug 06
2
Windows 7 and .libPaths()
...es/R/win-library/2.14"
[3] "C:/Program Files/R/R-2.14.1/library"
>
> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Portugal.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
#--------- R-2.15.0
> .libPaths()
[1] "C:/Program Files/R/R-2.15.0/library"
>
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-...