Displaying 20 results from an estimated 30000 matches similar to: "locale changing on Windows"
2012 Jul 09
1
axis.Date language
Dear useRs
I need to do graphs with dates in different languages on Ubuntu.
In Windows the following will plot the date axis labels in Spanish:
random.dates <- as.Date("2001/1/1") + 70*sort(stats::runif(100))
>language <- "Spanish"
>Sys.setlocale("LC_TIME", language)
>plot(random.dates, 1:100, xaxt="n")
>axis.Date(1,
2010 Apr 15
1
Changing locale?
Hi
I need for a specific application to change the locale of R 2.9.2 in
Ubuntu 9.04. Trying the example in ?Sys.setlocale:
Sys.setlocale("LC_TIME", "de_DE.utf8")
[1] ""
Warning message:
In Sys.setlocale("LC_TIME", "de_DE.utf8") :
la requ?te OS pour sp?cifier la localisation ? "de_DE.utf8" n'a pas pu
?tre honor?e
I tried the code
2023 May 30
3
why does [A-Z] include 'T' in an Estonian locale?
Inspired by this old Stack Overflow question
https://stackoverflow.com/questions/19765610/when-does-locale-affect-rs-regular-expressions
I was wondering why this is TRUE:
Sys.setlocale("LC_ALL", "et_EE")
grepl("[A-Z]", "T")
TRE's documentation at
<https://laurikari.net/tre/documentation/regex-syntax/> says that a
range "is shorthand for
2010 Mar 18
5
language!!!
Hi,
there´s something that really bothers me about R and after hours and hours of internet research, I´m still stuck with the same problem: I installed R and it is in Spanish, as the system on my work. I would really like it in English and there seems to be no way to change that!?! I´m doing an abroad internship, so my Spanish is far from perfect and my tutorial is in English.
Is there any
2007 Aug 17
2
Date format on x-axis
Dear R users,
Plotting question from a R beginner...
When I try to plot a response through time, for example:
>Date<-c("2006-08-17", "2006-08-18", "2006-08-19", "2006-08-20")
>response<-c(4,4,8,12)
>as.Date(Date)
>plot(Date,response)
The dates on the graphic appear in spanish. This I guess is the default
way of plotting because my
2010 Oct 29
7
date calculation
Hi list,
Could someone explain to me why the following result is not a integer?
> difftime(strptime("24NOV2004", format="%d%b%Y"), strptime("13MAY2004",
>format="%d%b%Y"), units="days")
Time difference of 195.0417 days
I'm using R2.12.0 on WinXP.
Thanks!
...Tao
2015 Jan 22
1
R CMD check: Locale not set to C?
Dear All
The "R CMD check" on the "zoo" (1.7-11) package results in an error on my
environment. It can be reduced to the following example:
----------------------------------------------------
> require(zoo)
> read.zoo(system.file("doc", "demo1.txt", package = "zoo"), sep = "|",
format="%d %b %Y")
Error in
2009 Oct 15
2
forwarded: bug (?) in cut.POSIXt with "breaks"=integer
From: Vitalie S. <vitosmail <at> rambler.ru>
Subject: Bug in cut.POSIXt
Newsgroups: gmane.comp.lang.r.general
Date: 2009-10-15 15:47:48 GMT (1 hour and 29 minutes ago)
Hello Everyone,
Before reporting decided to post here first:
tt <- structure(c(1254238817, 1254238859, 1254238969, 1254239080), class =
c("POSIXt",
2003 Nov 17
3
Accents in R
Hi,
How can I include accents and signs like '?' '?' in the plots generated by R?
I try, but R automatically transforms the name
ex:
> countries <- c("M?xico", "Espa?a")
> countries
[1] "M\216?xico" "Espa\216?a"
>
I've seen in some Spanish texts about R how is it normal to include labels of
the plots and other names with
2004 Sep 03
2
strptime problems
Hi, I'm experiencing a problem with strptime. (R 1.9.1 on a Win2000
machine)
I have a large list containing 6 columns and 161800 rows.
One column contains dates that I want to convert in order to compare the
different dates.
Some dates work just fine while others become NA. I don't see any
difference between the dates.
I've attached an example from my code. Hope this explains my
2011 May 04
1
issue with "strange" characters (locale settings)
WinXP-x32, R-21.13.0
Dear list,
I have a problem that (I think) relates to the interaction between Windows
and R.
I am trying to scrape a table with data on the Hawai'ian Islands, This is my
code:
library(XML)
u <- "http://en.wikipedia.org/wiki/Hawaii"
tables <- readHTMLTable(u)
Islands <- tables[[5]]
The output is (first set of columns):
2008 Jan 31
2
dates in French format
Hello R users,
I have to import a file with one column containing dates written in
French short format, such as:
7-d?c-07
11-d?c-07
14-d?c-07
18-d?c-07
21-d?c-07
24-d?c-07
26-d?c-07
28-d?c-07
31-d?c-07
2-janv-08
4-janv-08
7-janv-08
9-janv-08
11-janv-08
14-janv-08
16-janv-08
18-janv-08
There are other columns for other (numeric) variables in the
2009 Jul 28
1
Sys.setlocale
When checking an R package of mine, I get
* checking R files for syntax errors ... WARNING
Warning in Sys.setlocale("LC_CTYPE", "en_US") :
OS reports request to set locale to "en_US" cannot be honored
'Sys.setlocale' is not used in any of my R functions. What should I do
to fix the Warning? I have never seen this before.
My locale is "sv_SE",
2013 May 01
1
Windows, format.POSIXct and character encodings
Hi all,
In what encoding does format.POSIXct return its output? It doesn't
seem to be utf-8:
Sys.setlocale("LC_ALL", "Japanese_Japan.932")
times <- c("1970-01-01 01:00:00 UTC", "1970-02-02 22:00:00 UTC")
ampm <- format(as.POSIXct(times), format = "%p")
x <- gsub(">", "*", paste(ampm, collapse =
2017 May 19
2
test fails when requesting LC_CTYPE
On RedHat Enterprise Linux 6, the test below fails (this is using the stock
GCC 4.4.7) from R-devel r72707. LC_CTYPE is unset when I run it, but
LANG=en_US.UTF-8
It also failed "yesterday" where as far as I recall the test code looked a
bit different.
Best,
Kasper
> ## Results differed by platform, but some gave incorrect results on
string 10.
>
>
> ## str() on large
2010 Mar 18
1
How to read.table with “Hebrew” column names (in R)?
(I am reposting this question after a few months without a solution...)
Hi all,
I am trying to read a .txt file, with Hebrew column names, but without
success.
I uploaded an example file to: http://www.talgalili.com/files/aa.txt
And tried the command:
read.table("http://www.talgalili.com/files/aa.txt", header = T, sep = "\t")
This returns me with:
X.....ª X...ª......
2023 Jun 01
1
why does [A-Z] include 'T' in an Estonian locale?
On 5/30/23 17:45, Ben Bolker wrote:
> Inspired by this old Stack Overflow question
>
> https://stackoverflow.com/questions/19765610/when-does-locale-affect-rs-regular-expressions
>
>
> I was wondering why this is TRUE:
>
> Sys.setlocale("LC_ALL", "et_EE")
> grepl("[A-Z]", "T")
>
> TRE's documentation at
>
2007 Dec 11
3
Wrong length of POSIXt vectors (PR#10507)
Full_Name: Petr Simecek
Version: 2.5.1, 2.6.1
OS: Windows XP
Submission from: (NULL) (195.113.231.2)
Several times I have experienced that a length of a POSIXt vector has not been
computed right.
Example:
tv<-structure(list(sec = c(50, 0, 55, 12, 2, 0, 37, NA, 17, 3, 31
), min = c(1L, 10L, 11L, 15L, 16L, 18L, 18L, NA, 20L, 22L, 22L
), hour = c(12L, 12L, 12L, 12L, 12L, 12L, 12L, NA, 12L,
2002 Nov 14
1
chron and locales
(R-1.6.0 and chron 2.2, linux)
I have to work with date/time values from another LOCALE
on my machine. My normal locale is "de DE at euro" and
the data I have to handle use AM/PM specifications for the times.
dstring <- "Nov 12 2001 4:31PM"
The problem now is, that
strptime(dstring, "%b %d %Y %I:%M%p")
[1] "2001-11-12 04:31:00"
just ignores my
2016 Jul 15
2
summary() dispatch puzzle
I'm sorry I haven't boiled this down to a more-minimal example yet,
but ...
I'm working on an S3 method (tidy.merMod, in the 'broom' package). It
normally handles 'merMod' objects from the lme4 package, but I'm trying
to make it handle 'merModLmerTest' objects from the lmerTest package too.
The merModLmerTest class inherits (as an S4) class from the