similar to: ?strptime ambiguity (PR#7907)

Displaying 20 results from an estimated 11000 matches similar to: "?strptime ambiguity (PR#7907)"

2023 Nov 05
3
strptime with +03:00 zone designator
I have some data that includes timestamps like this: 2017-02-28T13:35:00+03:00 The documentation for strptime says that %z expects an offset like 0300. I don't see any way in the documentation to get it to accept +hh:mm with a colon separator, and everything I tried gave me NA as the answer. Section 4.2.5.1 of ISO 8601:2004(E) allows both the absence of colons in +hh[mm] (basic format) and
2015 Aug 30
2
[OT] new R logo in vector graphics format
L.S. Since some time there is a new r-project.org site as announced here: https://stat.ethz.ch/pipermail/r-announce/2015/000581.html The logo has changed on the site, but I fail to find a vector graphics file. For the previous logo I used to go to https://svn.r-project.org/R-dev-web/trunk/Logo/ Is there anything similar for the new logo? Many thanks in advance. Kind regards, Tobias --
2015 Jun 06
1
NEWS file inconsistency
Many thanks, Duncan. We will check the prerelease versions of R 3.2.1. Best regards, Tobias ----- Original Message ----- > From: "Duncan Murdoch" <murdoch.duncan at gmail.com> > To: "Tobias Verbeke" <tobias.verbeke at openanalytics.eu>, "r-devel at r-project.org" <r-devel at r-project.org> > Sent: Saturday, June 6, 2015 2:37:04 PM >
2023 Nov 06
1
strptime with +03:00 zone designator
try using 'lubridate' > library(lubridate)Attaching package: ?lubridate? The following objects are masked from ?package:base?: date, intersect, setdiff, union > x <- "2017-02-28T13:35:00+03:00"> ymd_hms(x)[1] "2017-02-28 10:35:00 UTC" > Thanks Jim Holtman *Data Munger Guru* *What is the problem that you are trying to solve?Tell me what you
2023 Nov 06
1
strptime with +03:00 zone designator
OK, so the consensus is (1) One cannot make strptime accept ISO8601-compliant zone designators (2) The lubridate package can (3) Or one can hack away with regex. Lubridate it is, then. But I do regard strptime's inability to process ISO8601-compliant zone designators as a bug. On Mon, 6 Nov 2023 at 13:18, jim holtman <jholtman at gmail.com> wrote: > try using 'lubridate'
2023 Nov 06
2
strptime with +03:00 zone designator
>>>>> Richard O'Keefe >>>>> on Mon, 6 Nov 2023 18:37:34 +1300 writes: > Thanks to all who replied. On Mon, 6 Nov 2023 at 18:37, > Richard O'Keefe <raoknz at gmail.com> wrote: >> OK, so the consensus is (1) One cannot make strptime >> accept ISO8601-compliant zone designators (2) The >> lubridate package
2023 Nov 06
1
strptime with +03:00 zone designator
Thanks to all who replied. On Mon, 6 Nov 2023 at 18:37, Richard O'Keefe <raoknz at gmail.com> wrote: > OK, so the consensus is > (1) One cannot make strptime accept ISO8601-compliant zone designators > (2) The lubridate package can > (3) Or one can hack away with regex. > Lubridate it is, then. > > But I do regard strptime's inability to process
2013 Sep 21
2
regenerate Rscript after moving R installation
L.S. In this bug report https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14493#c1 it is mentioned that after moving an R installation one should regenerate the Rscript executable. Is there an easy way to do so (after an R installation has been moved)? I have not found any information in the R installation and administration manual. Many thanks in advance for any pointer. Best wishes,
2008 Apr 14
1
option(expressions) and --max-ppsize
Dear list, Is there an exact formula / safe rule of thumb that allows one to express the value of --max-ppsize as a function of the value of getOption("expressions") ? ?options tells "If you increase it [the expressions option], you may also want to start R with a larger protection stack". Motivation is to determine stack size of a Java vm used to launch R with a given
2006 Dec 09
1
abline for intercept-only simple lm models (with and without offset)
The abline function can be used to draw the regression line when one passes the lm object as an argument. However, if it's an intercept-only model, it appears to use the intercept as the slope of the abline: mod <- lm(dist ~ 1, data = cars) plot(dist ~ speed, data = cars) abline(reg = mod) # nothing appears This behaves as documented, but might catch someone. Would it be an improvement
2010 Jun 03
1
ISO 8601 Weeks/Years on Windows with strptime
Dear R-help, I am working on a R package for public health surveillance where the ISO 8601 representation of dates is of importance. Especially, the ISO Week and ISO Year of a date needs to be extracted. I was quite happy to find all of this implemented in the "Date" class with appropriate calls to strptime/format (using e.g. %G and %V). However, only later I realized that this
2005 Oct 17
1
mauchly.test (instead of mauchley.test) ?
Wherever I look up the following reference the name of the author is spelled Mauchly contrary to the naming of the R function. Mauchly, J.W., Significance test for sphericity of a normal $n$-variate distribution, Annals of mathematical statistics, 11(1940), p. 204-209. Is this a typo on the original article (which R Core has corrected) or is it a typo in the function name ? Best regards, Tobias
2006 Nov 29
1
strptime - %p format doesn't seem to be working
Hi there, Am I missing something? The "%p" format, which should match against AM/PM, seems to be broken in R 2.3.1 running on Windows XP SP2. For example, the following fails > strptime("10AM", "%I%p") [1] NA whereas the this works as you would expect, but is ambiguous > strptime("10", "%I") [1] "2006-11-30 10:00:00" Does
2007 Aug 06
2
Makefile for embedding OpenBUGS in R package
Dear list, I'm trying to embed OpenBUGS in an R package for use of it on 64-bit Linux. In order to get the CLI working one has to compile C code contained in $OpenBUGS/Manuals/CBugs.html (copied to say CBugs.c) using gcc -m32 -o bugs CBugs.c -ldl I put the OpenBUGS distribution in the ./inst subdirectory of the package root. Where should I now put the CBugs.c and how
2015 Jan 23
5
Programming Tools CTV
Hi all, Sorry if this doesn't end up in the thread. Tobias Verbeke forwarded that e-mail to me, because he thought I would be interested in maintaining the Programming Tools CTV. I wasn't subscribed to R-devel yet, but I would indeed like to volunteer to maintain the Programming Tools CTV. It will be my first time creating a CTV, so some guidance on getting it setup will be appreciated.
2007 Sep 01
1
serialized plot object (for a certain device)
Dear list, Using serialize it is possible to save the binary string representing an R object to a raw R vector. ## adapted from ?serialize x <- serialize(list(1,2,3), NULL) x I am looking for a way to capture the binary string that in normal use of graphics devices will be written to (most commonly) a file connection. jpeg(file = "test.jpg") plot(1:10) dev.off() In other
2007 Sep 09
1
format text help pages Windows
Dear list, Could someone enlighten me a bit on the exact format used for text help pages as I see them on Windows in the help/ folders of (compiled) package roots. When opening an example of these files in a text editor (?Bessel in GNU emacs), the file is displayed as follows: _^HB_^He_^Hs_^Hs_^He_^Hl_^H _^HF_^Hu_^Hn_^Hc_^Ht_^Hi_^Ho_^Hn_^Hs Bessel package:base
2003 Jun 05
6
dynamics of functions
Dear list, I would like to study the dynamics of functions using R (instead of mathematica e.g.), i.e. the behavior of points under iteration of a function. So I tried (in vain) writing a function myfunction <- function(f,n,x){...} in order to compute f^{n}(x), f^{n}(x) being the function f composed with itself n-1 times. n is a natural number, and the argument x is the abscissa of the point I
2005 Jan 19
1
ppoints (PR#7538)
Dear r-bugs, Whilst playing with ppoints I discovered that when one uses it directly, occasional NA's in a vector also become data fractions: ppoints(c(1,2,NA,4)) Would it be a good idea to add a warning message as in: ppoints <- function (n, a = ifelse(n <= 10, 3/8, 1/2)) { if(any(is.na(n))) warning("'n' contains NA's") if(length(n) > 1) n <-
2008 May 30
3
Strptime
Hi This code should explain what I'm trying to do > strptime("30-Jan-08", "%d-%b-%y") [1] "2008-01-30" > > format(strptime("30-Jan-08", "%d-%b-%y") , "%b-%y") [1] "Jan-08" > > strptime(format(strptime("30-Jan-08", "%d-%b-%y") , "%b-%y") , "%b-%y") [1] NA I have a