Displaying 20 results from an estimated 10000 matches similar to: "date format"
2005 Nov 21
1
modify boxplot
Hi everybody,
I'm trying to modify the boxplot just to set the upper
whisker to the 90 percentile value, but I still
couldn't find the solution.
Can anyone help me?
Thanks
Alessandro Carletti
2009 Sep 21
3
compute differences
Hi,
I have a problem.
I have a data frame looking like:
ID val
A? .3
B? 1.2
C? 3.4
D? 2.2
E? 2.0
I need to CREATE the following TABLE:
CASE?? DIFF
A-A??? 0
A-B??? -0.9
A-C??? -3.1
A-D??? -1.9
A-E??? -1.7
B-A??? ...
B-B??? ...
B-C
B-D
B-E
C-A
C-B
C-C
C-D
C-E
D-A
D-B
D-C
D-D
D-E
E-A
E-B
E-C
E-D
E-E
WHERE CASE IS THE COUPLE OF ELEMENTS CONSIDEREDM AND DIFF IS THE computed DIFFERENCE between
2005 Oct 28
4
clustering
Hi everybody,
I'm performing a cluster analysis (pkg "cluster") on a
dataset which includes 15 variables: is there a way to
know how much each variable weighs on the final
clustering output?
Thanks
Alessandro
2005 Jul 28
1
conversion from SAS
Hi, I wonder if anybody could help me in converting
this easy SAS program into R.
(I'm still trying to do that!)
PROC IMPORT OUT= WORK.CHLA_italian
DATAFILE= "C:\Documents and
Settings\carleal\My
Documents\REBECCA\stat\sas\All&nutrients.xls"
DBMS=EXCEL2000 REPLACE;
GETNAMES=YES;
RUN;
data chla_italian;
set chla_italian;
2024 Jun 09
2
Format
HI all,
My
I am trying to convert character date (mm/dd/yy) to YYYY-mm-dd date
format in one of the columns of my data file.
The first few lines of the data file looks like as follow
head(Atest,10);dim(Atest)
ddate
1 19/08/21
2 30/04/18
3 28/08/21
4 11/10/21
5 07/09/21
6 15/08/21
7 03/09/21
8 23/07/18
9 17/08/20
10 23/09/20
[1] 1270076 1
I am using the following
2004 Oct 11
5
read "4-jan-02" as date
Dear R users,
I have a column with dates (character) in a data frame:
12-Jan-01 11-Jan-01 10-Jan-01 9-Jan-01 8-Jan-01 5-Jan-01
and I need to convert them to (Julian) dates so that I can
sort the whole data frame by date. I thought it would be
very simple, but after checking the documentation and the
list I still don't have something that works.
1. as.Date returns the error below. What am I
2000 Jan 03
1
Rounding in date.mdy from library(date)
The date library contains a function date.mdy that converts a number
D to the date (month,date,year as a list) at D days after 1 Jan 1960.
This a convention that fits in with SASs.
The logic would be that the result was the date at D days after
1 Jan 1960 00:00:00 (which is a POINT in time as opposed to a date which
is an interval), so that any D with 2<=D<3 was rounded to 3 Jan 1960
and
2006 Jun 09
1
date.mdy in date package
I'm having a problem with output from date.mdy in the date package.
Goal: to take a long vector of dates of the form "01/22/99" and extract values month="01", day="22", year="1999".
I am providing the vector of class dates in the attached file to date.mdy:
> mdy_dates<-date.mdy(trimmed_dates)
The first few obs of the
2009 Nov 11
1
Unexpected behaviour for as.date()
Hi everyone,
I am trying to use the function as.date() from the "dates" package in R
2.10.0 to convert a character date to a Julian date, as follows:
> as.date("02-MAY-01", order="mdy") # convert May 2, 2001 to a Julian date
[1] 2May1
However, when trying to convert a character date from the year 2000 to a
Julian date, I get an <NA> instead of the
desired
2001 Jan 03
1
package/ date/ download problem
Colleagues
I want to download the package "date" from CRAN <http://cran.r-
project.org/> to get the R-scripts (for version 1.2.0)
*** date/INDEX ***
as.date Coerce Data to Dates
date.ddmmmyy Format a Julian date
date.mdy Convert from Julian Dates to Month, Day, and Year
date.mmddyy Format a Julian date
date.mmddyyyy Format a Julian date
date.object Date Objects
mdy.date
2005 Aug 08
2
selecting outliers
Hi everybody,
I'd like to know if there's an easy way for extracting
outliers record from a dataset, in order to perform
further analysis on them.
Thanks
Alessandro
2002 Feb 07
1
Plotting on log scale using plot.date()
Hi, I'm trying to use the date library and I think I'm getting an
incorrect warning when I make a plot with plot.date(). For example:
> library(date)
> x <- as.date(1:100)
> y <- 1:100
> plot(x, y, log = "y")
Warning message:
parameter "log" couldn't be set in high-level plot() function
The problem appears to be in the last line of plot.date()
2005 Aug 19
2
Handling dates
I have a problem with some functions handling dates, in packages 'date' and
'survival' (they seem to be identical). For instance, from the documentation,
--------------------
mdy.date {survival}
R Documentation
Convert to Julian Dates
Description
Given a month, day, and year, returns the number of days since January 1, 1960.
Usage
mdy.date(month, day, year, nineteen = TRUE,
2004 Sep 16
2
date library and notched boxplots
I'm having problems using the date library with notched boxplots. I have separate month, day, and year columns and would like to plot the columns as a date against other variables. I have used the mdy.date(month,day,year) command before with plot(), but it doesn't seem to work with boxplot(). Instead of the dates along the x-axis, I get a list of numbers. Maybe I have the code wrong?
2009 Aug 11
1
Passing a list object to lapply
Hello,
I'm having difficulty passing an object name to a lapply function. Can
somebody tell me the trick to make this work?
#Works
T13702 <- TRACKDATA[["13702.xls"]][["data"]]
min(unlist(lapply(list(T13702), function(x) mdy.date(x[1, 2], x[1, 1],
x[1, 3]))))
16553
#Works
d<-2
assign(paste("T",substr(names(TRACKDATA)[d],1,(nchar(names(TRACKDATA)[d]
2000 Apr 26
1
xaxp with dates
Dear friends.
As promised ver 1.01 solved the former problem and now dates plot OK in
windows. But.
In the following code, "cex.axis"=0.5 works OK but "xaxp"=c(14620,14680,4)
has seemingly no effect. The limits for xaxp was found from the default
plot and inspecting par(). I need to put the date marks at specific points.
Could I suppress them altogether and make a new xaxis
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
2003 Sep 17
2
Date on x-axis of xyplot
xyplot doesn't seem to want to label my x-axis with dates but instead puts
the day-number for each date.
begdate is the number of days since January 1, 1960 and was initially
created by
library(date)
...
polls$begdate<-mdy.date(begmm,begdd,begyy)
I create a new dataframe (pollstack) which includes begdate. In the process
begdate seems to lose its date attribute so I redo it as:
>
2008 Dec 28
1
month-day-year to Date
I have a data from with 3 numeric variables, and wish to create a Date object.
The old "date" library had a function mdy.date to do this. I've chased all of
the See Also sections I can find for the Date class, and didn't find anything
comparable.
Yes, I can use as.Date(paste(data$year+1900, data$month, data$day), sep='/'))
but it seems odd pack something together that
2011 Feb 08
2
as.Date
Hi everybody,
I have a strange behavior of the as.Date() function. For example:
as.Date(36525, origin="1900-01-01'")
I would expect to get 2000-01-01. But R gives me
[1] "2070-01-01"
I tried with several origins but the results are still the same. It
seems that the origin does not apply and remains 1970-01-01.
Does anyone can give me a hint how to