Hi
I cannot seem to create any files that have the name "CON" before the file
extension, i.e. all of the following fail:
> pdf("CON.pdf")
Error in pdf("CON.pdf") : unable to start device pdf
> jpeg('CON.jpeg')
Error in jpeg("CON.jpeg") : unable to start device devWindows
> png('CON.png')
Error
To answer part 1) of your question, see point 7.31 in the R FAQ
(http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-
numbers-are-equal_003f).
> 0.3 - 3*0.1
[1] -5.551115e-17
It always amazes me in how many different guises the problem of floating
point representation crops
Hi all
I don't know much about R internals and what goes on behind the scenes but
to me it would seem that
lapply(dim(a), function(i) seq(length=i))
accomplishes the same as
jj <- function(i) seq_len(dim(a)[i])
lapply(seq_len(length(dim(a))), jj)
and might be easier to read. Is there a perform
I think the following does what you want:
> (d <- structure(c(6586, 6586, 6589, 6593, 6593, 6593, 6598, 6598, 6598,
6598), class = "Date"))
[1] "1988-01-13" "1988-01-13" "1988-01-16" "1988-01-20" "1988-01-20"
"1988-01-20" "1988-01-25"
[8] "1988-01-25" "1988-01-25" "1988-01-25"
> (td <- table(d))
Hi
I have data that is sampled (in time) with a certain frequency and I would
like to express this time series as a time series of a higher (or lower)
frequency with the newly added time points being filled in with NA, 0, or
perhaps interpolated. My data might be regularly or irregularly spaced.
I've also reproduced this behaviour on WinXP + MS SQL Server and would agree
that it's a bug with the "fast=FALSE" option.
Have the package maintainers been contacted about this?
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of chao gai
>Sent: 18 Oct
Hi all
I was wondering whether there has ever been an update on the rownames and
colnames behaviour as described by Eric below?
I still get the same behaviour, exactly as described by Eric, on my WinXP
installation of R-2.3.0. I also posted a message to r-help on Friday but
looking through the o
>-Original Message-
>From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
>Sent: 14 November 2005 06:21 PM
>
>On 11/14/05, Brandt, T. (Tobias) <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> Given that things like the following work
>>
>> >
Hi
Given that things like the following work
> a <- c("-.1"," 2.7 ","B")
> a
[1] "-.1" " 2.7 " "B"
> as.numeric(a)
[1] -0.1 2.7 NA
Warning message:
NAs introduced by coercion
>
I naively expected that the following would behave differently.
> b <- c('10%', '-20%', '30.0%', '.40%'
Hi
I've been greatly enjoying the functionality the zoo package offers.
However I've hit a snag with the following code
> a <- zoo(matrix(1:10,5,2), 2001:2005)
> a
2001 1 6
2002 2 7
2003 3 8
2004 4 9
2005 5 10
> a[I(2003), 2]
2003 8
> a[I(2003), 2] <- NA
Error: subscr
[R] data.frame-question]
This is what I am looking for, but I still get an error message, that my
arguments are not of the same length.
How can I avoid this error message? Maybe I should add, that there are also
NA´s in the second column, but I tried to ignore them by na.rm=TRUE.
Thanks in advance
Is
TAB3 <- as.data.frame(with(TAB1, tapply(Number, Name, sum)))
colnames(TAB3) <- c("Name_singular", "Sum")
what you are looking for?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Graber
Sent: 25 October 2005 09:45 PM
To: R-Mailingliste
Subje
12 matches
Mail list logo