similar to: as.POSIXct month problem

Displaying 20 results from an estimated 2000 matches similar to: "as.POSIXct month problem"

2001 Jan 11
2
problem with strptime example (PR#811)
On Thu, 11 Jan 2001 stephen@anc.ed.ac.uk wrote: > 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]
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
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 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
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 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
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",
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
2007 Jul 31
1
POSIXct Formating Error (PR#9819)
To Whom It May Concern: The following appears to be a bug in the way POSIXct dates are formated. The example is forced, but occurs naturally when importing Excel type dates (where fractional part is fraction of a day) and small rounding errors result. As shown, looking at the POSIXct class, it looks as if both times are 16:11:03 (truncation) Looking at as.numeric.POSIXct, it looks as if
2007 Apr 19
1
Error with strptime
Dear All, I am trying to convert to POSIXct after pasting a date and a time in character format with strptime. It is probably obvious but I don't understand why I get an error message after bsamp$spltime<-strptime(test,format="%d-%B-%y %H:%M") whereas I can get what I want if I do it in 2 steps and rbinding ? Thanks and best regards, Jean-Louis This is the R console output
2020 Apr 07
4
Hard memory limit of 16GB under Windows?
Hi Tomas, Many thanks for your answer. Here is a copy of a fresh session under RStudio, and after a copy under Rgui. Strangely enough the result of memory.limit() is not the same. Without your question I would not have looked to RGui, being used to work with RStudio. The value under RGui sounds to correspond to the total RAM of the computer. It makes me noticing that the value is in MB.
2020 Apr 07
3
Hard memory limit of 16GB under Windows?
Hi, I am not not sure whether this topic belongs to this mail list, but I feel the subscribers here should be the right audience. I noticed that the memory limit reported under Windows is 16 GB. I am wondering how to increase it. I didn't found anything in Rprofile.site nor .Rprofile. Is this limit hard coded at compilation? Best, Samuel [[alternative HTML version deleted]]
2007 Nov 28
2
alternatives to traditional least squares method in linear regression ?
Dear list, I have encountered a special case for searching a linear regression where I'm not satisfied with the results obtained using the traditional least squares method (sometimes called OLS) for estimating/optimizing the residues to the regression line (see code below). Basically, a group of my x-y data are a bit off the diagonal line (in my case the diagonal represents the ideal or
2007 Oct 04
1
Problem with .libPaths & Rterm.exe (under Vista)
Dear list, I?m using R embedded in another program (coded in tcl/tk) under Windows Vista. In this context I don?t launch Rgui.exe but rather Rtem.exe. Now I have a problem finding libraries not specifically installed as administrator (and which are not in the path ?program files? but in Contacts\Documents of the current user). To be precise, the user launching my tcl/tk program can?t find
2008 Sep 19
1
readRegistry function (PR#12937)
Full_Name: Zivan Karaman Version: 2.7.2 OS: Windows XP Submission from: (NULL) (195.6.68.214) I'm puzzled by the readRegistry function. Shouldn't the "hive" argument be something like c("HLM", "HCR", "HCU", "HU", "HCC", "HPD") rather than c("HLM", "HCR", "HCU", "HU",
2007 Oct 09
2
extract year or month from date
Hi, I am having trouble extracting just the year or the month or the day from a date such as 5/7/2007 which is May 7th 2007. Is there any particular function to extract just the year from this format? When I am reading this data from a text file it is reading it correctly in the same format but does not acknowlede it as date but as a factor. If I try as.date(5/7/2007) then it is converting it to
2009 Sep 24
1
how to make a function recognize the name of an object/vector given as argument
Dear guRus, I'd like to learn how to make a function recognize the name of an object/vector given as argument If I have : testFun <- function(x,y) plot(x,y, main=paste("plot of",names(x),"and",names(y)) ) # this just a simple example ... a1 <- 5:8 b1 <- 9:6 testFun(a1,b1) # Returns the plot, but not the names of the objects/vectors given as arguments, # but
2010 Oct 18
1
R 2.12.0 for Windows: error when loading (some) packages
Dear all, I have installed the latest version of R 2.12.0 available on CRAN (http://cran.r-project.org). When I try to load the recommended package lattice: > library(lattice) Error: package 'lattice' is not installed for 'arch=i386' I am running Rgui using C:\R\R-2.12.0\bin\i386\Rgui.exe --vanilla > sessionInfo() R version 2.12.0 (2010-10-15) Platform: