Displaying 20 results from an estimated 9000 matches similar to: "No subject"
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]]
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
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
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]
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",
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
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",
1999 Oct 18
1
No subject
Dear friends.
When using in windows version the menu function to change directory, what actions are actually performed, i.e. what commands could I write to a file to make a CD ? I couldn't find it mentioned anywhere - undoubtedly an oversigth on my part.
Troels Ring, M.D
Department of Nephrology
Aalborg, Denmark
tring at mail1.stofanet.dk
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?
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 Apr 24
2
paste ?
Dear friends. I've made a very simple procedure to make Bland-Altman plots
and it works OK except for the inability to take a variate as argument in
annotation. I'm sure it is a very simple error, so if you have 5 seconds
please tell me.
Best wishes
Troels
bland <- function (x) #accepts two columns
{
mn <- 0.5*(x[,1]+x[,2])
diff <- x[,1]-x[,2]
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
1998 Dec 15
1
No subject
Dear friends. This is again a very simple question, and I hope you will accept it. I have a dataset with variables in columns all with their names. Now I want to add a column indicating simply identity of patients, numbered according to row. There are 34 rows.
So I did:
>ID <- c(1:34)
but was not allowed to
>Ptt <- cbind(patients,ID)
and was informed that
>Error: names attribute
1999 Jun 27
2
paste and path ?
Dear friends. I have trobpe with path.
Below I have tried to paste a path and file name but it will not work
> path <- "D:/rw0641/own/own/procedures/GFR_TIME"
> path
[1] "D:/rw0641/own/own/procedures/GFR_TIME"
> path1 <- paste(path,"gfr.txt",sep="/")
> path1
[1] "D:/rw0641/own/own/procedures/GFR_TIME/gfr.txt"
-- this is good
1999 Jun 07
1
Re:
move or copy the directories mass, nnet and class to the library directory
- then execute link.html.help()
Now execute library(MASS) and data(petrol)
Should work.
"Troels Ring"
1999 Nov 20
1
Sv:
Thank you to Peter Dalgaard, who provided help for some of this solution.
It is still not ideal since the dots which are equidistant in the x-direction ideally should respect the reciprocal scale in the y-direction.
op <- par("cex"= 0.7)
x<-y<-NA
plot(x,y,xlim=c(0,10),ylim=1/c(2000,70), axes=F)
box()
axis(1)
1999 Jan 12
2
PAR(las)
Dear friends. In the documentation for PAR it is specified that "las" allowing turning axis labels away from default=parallel to axis is not implemented. I need to make graphs with horizontal Y axis labels - how to ?
I'm using win98.
Thank you in advance.
Sincerely yours
Troels Ring, MD
Department of Nephrology
Aalborg Hospital
Aalborg Denmark
1999 Dec 22
1
No subject
Dear friends.
I've forgotten how to simulate data with a known correlation, e.g. only two columns. I'd be most pleased to be told.
Thanks in advance
Troels Ring, M.D
Department of Nephrology
Aalborg, Denmark
tring at mail1.stofanet.dk
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
1999 Nov 20
1
No subject
Dear friends.
I wanted to reproduce a sheet of paper useful for plotting the reciprocal of some biochemical variable (creatinine) over time (Bleyer Am J Kidney Dis 34:576-578,1999). Time on X axis with units years and months. On Y axis, 1/creatinine, but with the original creatinine value indicated - to make it easier for people to use it. When using the graph, the linear decrease in 1/crea over
2000 Apr 27
1
plotting axes
Dear friends. I appreciate the help that plot.date is not yet fully
developed but beautiful and efficient as is anyway. I attach again an
example from a real patient and now the problem is how to represent a
chemical C-reactive protein (CRP) on the plot together with concentration
of vancomycin. CRP was 25-200 and vancomycin below about 20. I only could
get it about right by dividing CRP by