Displaying 20 results from an estimated 20000 matches similar to: "Problem with very old dates"
2011 Nov 17
3
R help
Hello:
I have some trouble making a prediction from an AR(p) model. After I have the AR(p) model fitted , I want to use a new data set to make predictions.
But I get the error: Error in newdata - object$x.mean : non-numeric argument to binary operator.
A small version of my original data looks like:
X1
X2
X3
X4
40813.65
1
10
41.86755
40813.65
1
8
41.86755
40813.66
1
8
41.86755
2008 Dec 10
2
Confusion with Converting Factors to Dates using as.date
Dear R-Helpers:
I'm having a problem getting dates into the correct format. I have a data frame, which is based on a .csv file that I imported into R via read.table.
R has converted my date variables to factors; when I use the as.Date command, most of the values are converted "correctly" (and by this I guess I mean converted "as I wish them to be") but some have not been.
2009 Dec 31
3
Dialplans & Holiday Dates
I have a working dialplan for our phone system with Mon-Fri, business
hours identification, etc. But what I'm lacking right now is support
for company holiday dates.
What I'd like to do is to create a database of these dates and just
update them as new years rollover.
I suspect others have done this sort of thing with Asterisk before, but
I've not found any resources so far.
2012 Feb 03
3
strftime - Dates from Excel files
Hi
I have many excel files were the Date field was not declared as date,
so the dates look like this: 1/2/1978
I know that the format is day/month/year
How can I make R change this to Date format?
If I use strftime, I get wrong dates:
dataset=c("1/2/1978")
strftime(dataset,"%d/%m/%Y")
"19/02/0001"
Thanks in advance.
2011 May 10
1
Converting ordinal dates and time into sensible formats
Hello all,
I am having a little trouble working with "strptime" and I was hoping
someone might be able to give me a hand. I have an instrument that outputs
an ordinal date and time in two columns something like this:
day.hour min.sec
1 12525 2050
2 12518 2029
3 12524 2023
4 12524 2028
5 12507 2035
Now the problem I am having is converting these numbers
2009 Sep 24
2
Date formats in as.Date
I have trouble with this:
as.Date("Sep-1981", format="%b-%Y")
Returns "NA"
>From documentation for strftime
'%b' Abbreviated month name in the current locale. (Also matches
full name on input.)
'%Y' Year with century.
What am I doing wrong?
cheers
Worik
[[alternative HTML version deleted]]
2006 Oct 19
2
use date as x-axis
Hi,
I have the following data in two columns. The first column is the date, the
second is data.
Date Data
3-Jan-95 459.21
4-Jan-95 459.13
5-Jan-95 460.73
6-Jan-95 460.38
9-Jan-95 460.67
10-Jan-95 460.9
11-Jan-95 461.68
12-Jan-95 461.64
13-Jan-95 461.64
16-Jan-95 465.97
17-Jan-95 469.38
18-Jan-95 470.05
19-Jan-95 469.72
20-Jan-95 466.95
23-Jan-95 464.78
24-Jan-95 465.81
25-Jan-95 465.86
I would
2009 Oct 13
1
plot dates in x-axis
Hallo,
I am trying to plot dates in x-axis. The format of my dates are in dd/mm/yyyy. At first I install zoo package. After R reads my file, I change the default format of dates to the format that I have,
>myfile<-read.csv
>DATE<-as.Date(DATE,format="%d/%m/%Y")
up till now everything goes ok; when however I go and plot for example
>plot(DATE, Discharge)
in the x-axis I
2011 Dec 13
4
sum with dates
How do I sum 15 years to my dataset?
original dataset
dates val
1 2001-01-12 1.2
2 2001-02-12 1.2
3 2001-03-12 1.2
result
dates val
1 2016-01-12 1.2
2 2016-02-12 1.2
3 2016-03-12 1.2
2010 Mar 12
3
How to format dates (with no century)?
Hi,
I have dates in this kind of format (day, month, year):
> dput(head(dates, 10))
c("6.4.7", "29.12.98", "19.10.91", "20.6.92", "2.9.3", "23.6.3",
"13.7.93", "23.3.7", "26.6.95", "15.2.10")
So, as you can see, there is no century. How can I change this
character data into dates? Any help
2009 Jan 23
2
Dates in Common
I have two collections of dates and I want to figure out what dates they have
in common. This is not giving me what I want (I don't know what it is giving
me). What is the best way to do this?
Tom
> data1
[1] "1948-02-24 EST" "1949-04-12 EST" "1950-05-29 EDT" "1951-05-21 EDT"
[5] "1951-12-20 EST" "1953-01-22 EST"
2007 Jul 18
3
dates() is a great date function in R
Proper calendar dates in R are great for plotting and calculating.
However for the non-wonks among us, they can be very frustrating.
I have recently discussed the pains that people in my lab have had
with dates in R. Especially the frustration of bringing date data into R
from Excel, which we have to do a lot.
Please find below a simple analgesic for R date importation that I
discovered
over
2007 Dec 16
1
format numbers in a contingency table
Hi,
I am constructing a contingency table using xtabs. The function works great:
mo
yr Sep Oct Nov Dec
1950 -7.164486e-02 3.152674e-02 -1.283389e-02 1.570382e-01
1951 3.054293e-02 4.665234e-02 -2.445499e-04 8.720204e-02
1952 3.937034e-02 -4.790636e-02 5.022616e-02 1.180279e-01
but I wonder if there is an argument I can pass to xtabs
2005 Mar 18
1
RE: problem with Dates
It seems that you have load the "survival" package
date.mdy is a function from this one.
In this function the "origin" of the time is the first day of 1970
in the base package the origin is the first day of 1960
it's very curious...
Benjamin Esterni
France
From: "Vegard Andersen" <vegard.andersen@ism.uit.no>
Subject: [R] Date conversion problem using
2006 Jun 06
4
change 1-06-2006 to 1st July 2006 (date formatting)
Hi,
I have a few dates coming from the datebase in the format ''DD-MM-YYYY''
How can I change this in to a more human readable format?
such as 1st July 2006
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2005 Sep 30
1
ACCESS R and dates
I have used the RODBC package to read in data I have stored in an Access file. When I am using data from files other than ACCESS I have no problem using the survival package to work with dates; however, with the ACCESS data the dates are reading-in in the following format: "2004-02-11 Pacific Standard Time". How do I remove the "Pacific Standard Time" part in ACCESS or R so
2009 Apr 29
2
library which convert dates
I'm looking for library which let mi convert dates
for example like this:
00-06-05 00:00
00-08-06 00:00
00-08-16 00:00
00-05-23 00:00
00-01-14 00:00
00-10-28 00:00
and as a result I want to get a 3 levels
--
View this message in context: http://www.nabble.com/library-which-convert-dates-tp23295853p23295853.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jan 14
1
publication statistics from Web of Science
Dear list,
This is a bit of an off-topic question, but I'm hoping to get some
advice from more experienced people. I've used the website "Web of
Science" to manually collect publication counts responding to several
keywords as a function of date, since the 1960s.
http://apps.isiknowledge.com/RAMore.do?product=UA&search_mode=&SID=P1g9lFJp9 at
2007 Dec 16
2
question about the aggregate function with respect to order of levels of grouping elements
Hi,
I am using aggregate() to add up groups of data according to year and month.
It seems that the function aggregate() automatically sorts the levels of
factors of the grouping elements, even if the order of the levels of factors
is supplied. I am wondering if this is a bug, or if I missed something
important. Below is an example that shows what I mean. Does anyone know if
this is just the way
2008 May 23
1
Strange julian and/or strptime
Hi r-helpers...
Why do I get this strange huge jump of 36524 days when changing "origin"
from 1969-01-01 to 1968-12-31. It should still be close to zero! This
really messes up my calculations of follow-up times in my analyses.
> julian(strptime("010169", format = "%d%m%y"),origin =
as.Date("1969-01-01"))
> Time difference of -0.04166667 days
>