en, Don [mailto:macque...@llnl.gov]
Sent: Thursday, January 12, 2012 5:27 PM
To: Czerminski, Ryszard; r-help@r-project.org
Subject: Re: [R] strange Sys.Date() side effect
My best guess is that you are misunderstanding what the c() function
does.
I'd suggest reading the help page for c, obta
My best guess is that you are misunderstanding what the c() function does.
I'd suggest reading the help page for c, obtained by typing
?c
Note that if you supply c() with objects of different types (as you have),
the results will probably not be what you wanted.
Given what c() does, your output
On 12-01-10 8:04 AM, Czerminski, Ryszard wrote:
Any ideas what is the problem with this code?
N<- 2; c(Sys.Date(), sprintf('N = %d', N))
[1] "2012-01-10" NA
Warning message:
In as.POSIXlt.Date(x) : NAs introduced by coercion
You are trying to create a vector combining a Date object and a
ch
Any ideas what is the problem with this code?
> N <- 2; c(Sys.Date(), sprintf('N = %d', N))
[1] "2012-01-10" NA
Warning message:
In as.POSIXlt.Date(x) : NAs introduced by coercion
Best regards,
Ryszard
Ryszard Czerminski
AstraZeneca Pharmaceuticals LP
35 Gatehouse Drive
Waltham, MA 02451
USA
781
4 matches
Mail list logo