similar to: problem with strptime example (PR#811)

Displaying 20 results from an estimated 4000 matches similar to: "problem with strptime example (PR#811)"

2001 Jan 11
0
problem with strptime example (and mention of bug.report) (PR#811)
Hi, The help file for strptime has the following code which doesn't work for me: ## read in date info in format `ddmmmyyyy' x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960") z <- strptime(x, "%d%b%Y") > z [1] "NA" "NA" "NA" "NA" Do these work for other people?
2001 Oct 01
2
problem with strptime example (PR#811)
Hello, strptime is still not working correctly in my computer (Windows 98 and R Version 1.3.1) From x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960") strptime(x, "%d%b%Y") I obtain [1] "NA" "NA" "NA" "NA" while x <- c("01011960", "02011960", "3131960",
2006 May 20
2
Function as.Date leading to error implying that strptime requires 3 arguments
I'm using R V 2.2.1. When I try an example from the as.Date help page, I get an error. > x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960") > z <- as.Date(x, "%d%b%Y") Error in strptime(x, format) : 2 arguments passed to 'strptime' which requires 3 > Any suggestions would be appreciated. Thanks, Rob
2009 Oct 26
3
as.POSIXct month problem
Hi everybody When I try example of strptime x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960") z <- strptime(x, "%d%b%Y") The result is; > z [1] NA NA NA NA I have got the same result with complete form of month but not with numeric form. Any idea? [[alternative HTML version deleted]]
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
2006 Apr 15
1
strptime failure R 2.2.1 (PR#8773)
Full_Name: Bill Hutchison Version: 2.2.1 OS: Windows XP Submission from: (NULL) (69.158.121.13) example(strptime) produces the following error: Error in strptime(x, "%d%b%Y") : 2 arguments passed to 'strptime' which requires 3 This error occurs wherever strptime is used. It does not occur in 2.2.0
2003 Nov 06
2
Number of Days
Hi everyone, I have been trying to compute numbers of days between two dates as follows: > x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960") > z <- format(x, "%d%b%Y") > ex <- c("1jan1961", "15jan1960", "21mar1975", "10jul1981") > ez <- format(ex, "%d%b%Y") > ez-z
2006 Apr 24
2
Change the language of the labels in a graph
Hello, How do you change the language of the labels in a graph. In this example, I want to get French labels by changing Sys.putenv. I should get "Mai" instead of "May". Sys.putenv(LANGUAGE="fr") x <- as.Date(c("1jan1960", "2jan1960", "31mar1960", "30jul1960"), "%d%b%Y") y <-1:4 plot(x,y) Regards, Pierre
2000 Jul 01
1
No subject
Dear friends. Library Date was updated recently. I do not remember having seen the error below until now ? The plot title is made appropriately but the error message may be annoying, right ? I use version 1.1 on windows 98. library(date) tt <- as.date(c("1jan1960", "2jan1960", "31mar1960", "30jul1960")) plot(tt,c(1:4),main="How's that ?")
2000 Jul 01
1
No subject
Dear friends. Library Date was updated recently. I do not remember having seen the error below until now ? The plot title is made appropriately but the error message may be annoying, right ? I use version 1.1 on windows 98. library(date) tt <- as.date(c("1jan1960", "2jan1960", "31mar1960", "30jul1960")) plot(tt,c(1:4),main="How's that ?")
2004 Apr 22
1
as.Date
Hi. I'm sure this is a complete green-horn question. I apologize. I'm trying to use as.Date *exactly* as shown on p. 194 of the manual (code fragment and error message pasted below). Is there some kind of "include" or "import" statement that I need to issue? Thank you very much for saving what remains of my hair. > x <- c("1jan1960",
2001 Nov 07
1
Configuring 2.2.2 (or 2.0.7) on Digital Unix 4.0f fails - "No locking"
When I run configure on either a DU server running 4.0f or a DU client running 4.0d, I receive the following error: ERROR: No locking available. Running Samba would be unsafe configure: error: summary failure. Aborting config Most directories are mounted using nfs v2 or nfs v3. rpc.lockd and rpc.statd are running on servers and clients. The rpcinfo -p command shows nlockmgr and llockmgr
2016 Mar 11
2
Regression in strptime
This is definitely obscure but we had a unit test that called .Internal(strptime, "1942/01/01", %Y/%m/%d") with timezone (TZ) set to CET. In R-3.1.3 that returned "1942-01-01 CEST" which, paradoxically, is correct as they evidently did strange things in Germany during the war period. Java also returns the same. However, R-3.2.4 returns "1942-01-01 CET".
2016 Mar 12
2
Regression in strptime
On 3/12/16 12:33 AM, peter dalgaard wrote: >> On 12 Mar 2016, at 00:05 , Mick Jordan <mick.jordan at oracle.com> wrote: >> >> This is definitely obscure but we had a unit test that called .Internal(strptime, "1942/01/01", %Y/%m/%d") with timezone (TZ) set to CET. > Umm, that doesn't even parse. And fixing the typo, it doesn't run: > >>
2016 Mar 15
4
Regression in strptime
>>>>> peter dalgaard <pdalgd at gmail.com> >>>>> on Sat, 12 Mar 2016 19:11:40 +0100 writes: > OK, .Internal is not necessary to reproduce oddity in this area. I also see things like (notice 1980) >> strptime(paste0(sample(1900:1999,80,replace=TRUE),"/01/01"), "%Y/%m/%d", tz="CET") ............... >
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
2007 Jan 08
1
Does strptime(...,tz="GMT") do anything?
Hi All In trying to correlate some tide gauge data I need to deal with varying timezones. From the documentation on strptime, it seemed that the tz variable might have some effect on the conversion, but I'm not seeing an effect. > strptime("20061201 1:02 PST",format="%Y%m%d %H:%M",tz="PST")+0 [1] "2006-12-01 01:02:00 EST" >
2017 Jan 11
4
bug with strptime, %OS, and "."
Hi R Devel, I just ran into a corner case with 'strptime'. Recall that the "%OS" conversion accepts fractional seconds: > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec [1] 14.01234 Unfortunately for my application it seems to be "greedy", in that it tries to parse a decimal point which might belong to the rest of the format: >
2011 Jul 06
1
trouble parsing a date using strptime()
Hi, I am having a trouble parsing dates using strptime() that I get in the format of year and week number. The data looks like this "201127" which means year 2011 and week 27. I would like to graph this using ggplot but then I get a gap between 201054 and 201101 so I thought I would just easily convert it. I tried to use strptime and as.Date and the format string of %Y%W but it seems
2017 Jan 11
2
bug with strptime, %OS, and "."
On Tue, Jan 10, 2017 at 08:13:21PM -0600, Dirk Eddelbuettel wrote: > > On 10 January 2017 at 17:48, frederik at ofb.net wrote: > | Hi R Devel, > | > | I just ran into a corner case with 'strptime'. Recall that the "%OS" > | conversion accepts fractional seconds: > | > | > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec > |