similar to: Odd behavior of strptime

Displaying 20 results from an estimated 10000 matches similar to: "Odd behavior of strptime"

2004 Nov 19
4
3d Map with bars
Apologies in advance for the question. I am trying to draw a map of the US as a surface plot so that I would be able to drop bars on the different states (something like Uwe Ligges' scatterplot3d example 4). I am not sure where to start looking for such a beast. If anyone has any pointers, ideas, I will be grateful. TIA, Partha
2003 Nov 14
5
A suggestion regarding multiple replies
Please don't take this the wrong way. There are a lot of extremely helpful people who subscribe to r-help. I was wondering if it is time to adopt a strategy a-la Splus help whereby people reply to the author and the author summarizes all the replies? Just a thought and have a good weekend. Partha
2001 Sep 27
4
using the pfe editor with R 1.1.3 under windows 2000
I am in the process of setting up R1.3.1 on a new computer running windows 2000. I am having problems running the PFE text editor simultaneously within R for editing functions and outside R for editing ordinary text files. The PFE editor behaves as I expected, if it is opened in R AND but no other PFE window is open outside R. Similarly, it also works fine if I am editing a text file outside
2003 Jan 07
1
axis() color from 1.5.1 to 1.6.1
I see that the definition of axis() has changed from 1.5.1 to 1.6.1 (as mentioned in the news file for 1.6.0). Axis now has a color argument to change it's color. However, the following command worked in 1.5.1: > axis(1, at = c(0.1, 0.2, 1, 5, 10), fg= gray(0.7), cex.axis = 0.8, col.axis= "red") #plot the axis in gray with annotations in red. The command no longer works in
2000 Mar 22
4
R-release dynamic load problem on HPUX10.20
Hello, I just pulled the patched release: R-release Version 1.0.0 Patched (March 19, 2000), on HPUX10.2 I am having dynamic library load problems. I configured with: ./configure --prefix=/home/absd00t/local --with-readline --with-x After changing etc/Makeconf to take -lblas out of libs (the blas library provided by the system is not a shared library), system was built without any interruptions.
2003 Apr 01
1
Bug in Plot.table?
While plotting a table using plot(table), I am not able to suppress the axes with axes = FALSE. Am I missing something or is it a bug? For example: > x <- c(rep(0, 7), rep(1, 4), rep(5, 3), rep(6, 4), rep(8, 10)) > table(x) > plot(table(x), axes = FALSE) #does not suppress the axes > plot(table(x), frame.plot= FALSE, axes = FASLE) #deliberate spelling
2004 May 06
3
strptime
Delving into the murky world of dates and times I found this: dates <- c("02/27/92", "02/27/92", "01/14/92", "02/28/92", "02/01/92") > times <- c("23:03:20", "22:29:56", "01:03:30", "18:21:03", "16:56:26") > x <- paste(dates, times) > z <- strptime(x, "%m/%d/%y
1999 Feb 12
1
Fisher's Exact Test
Appology in advance if this has been asked and answered. I am getting different answers using Fisher's exact test in the package ctest. For example: x_cbind(c(8, 22), c(31, 29)) fisher.test(x) Fisher's Exact Test for Count Data data: x p-value = 0.04024 alternative hypothesis: two.sided However, in SAS or other packages on the net the answer I get is p-value= 0.02664. Is this
1999 Aug 02
2
HTML Output from R
Task: To generate HTML output from R Details: I am trying to serve up HTML output from R. That is analyses or table of data from R saved as HTML output with formatted tables etc. This file is then called in a CGI script to output to user browser. The CGI script inspired by Mark J. Ray reads the HTML output, formats the header and footer and any graphic output if necessary. My question is: Has
1999 Oct 26
1
Wrong text() adjustment with (math)expression and "\n" (PR#299)
This is adapted from partha_bagchi@hgsi.com 's report on R-help: plot(0); title(expression("Bad\n with much much more text"))) gives something like Bad with much much more text (``newline w/o carriage return'') instead of centering both lines such as Bad with much much more text which is produced by (just dropping
1999 Mar 25
1
Question about Structure
Hello, Perhaps I am missing something here about the function structure() (Platfrm etc. in the end? > structure(1:6, dim= 2:3) [,1] [,2] [,3] [1,] 1 3 5 [2,] 2 4 6 > structure(1:6, dim= 3:2) [,1] [,2] [1,] 1 4 [2,] 2 5 [3,] 3 6 > structure(1:2, dim= 1:2) [,1] [,2] [1,] 1 2 > structure(1:2, dim= 2:1) [,1] [1,] 1 [2,]
1999 Nov 12
1
R-0.65.1 Startup
Dear R users, I have noticed that my R startup is extremely slow. It takes almost 3 minutes from "double-click" to R prompt. I have been running R-0.64.1 till recently and it took about 30 sec. I still have access to R-0.64.1. When I started it up, it took about 25 sec. Can anyone tell me if this is a bug in R or a problem with my machine? Note: This is after bootup with R being the
2008 Mar 20
3
Problem with diff(strptime(...
Hi all, I have been chipping away at a problem I encountered in calculating rates per year from a moderately large data file (46412 rows). When I ran the following command, I got obviously wrong output: interval<- c(NA,as.numeric(diff( strptime(mkdf$MEAS_DATE,"%d/%m/%Y")))/365.25) The values in MEAS_DATE looked like this: mkdf$MEAS_DATE[1:10] [1] 1/5/1962 1/5/1963
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
2008 Jul 09
4
Strptime/ date time classes
Dear all, I've come across a problem using strptime, can anyone explain what's going on? I'm using version 2.7.0 on Windows XP. Thank you Caroline First read in a data file using read.table alldata = read.table(file, header=F, skip=4, colClasses = c("character","numeric")) dim(alldata) [1] 223960 2 # inefficient, safe way of sorting out missing or dodgy
2000 Mar 08
3
Error loading ctest
Has anyone noticed this behavior: > library(ctest) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "J: \STATS\RW1000/library/ctest/libs/ctest.dll": LoadLibrary failure > library(ctest) > version _ platform Windows arch x86 os Win32 system x86, Win32 status major 1 minor 0.0 year 2000 month
2004 Jun 14
4
Coercing a dataframe column to datetime
I am trying to coerce a data frame column from character to datetime using strptime but keep getting an error because the length of the coerced object is always 9. What am I doing wrong here: ................................................................. > ds <- cbind(1:2, c("02/27/92 23:03:20", "02/27/92 22:29:56")); ds [,1] [,2] [1,]
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") ............... >
2004 Oct 29
3
Warning message if the plot statement breaks into 2 lines
Here is a curious observation. In > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 0.0 year 2004 month 10 day 04 language R > Try the following: > Plot(c(1:100), type = "l + ") Warning message: plot type 'l ' truncated to first character in: plot.xy(xy, type, pch,
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" >