Not at all appropriate to be posted to R-devel :
> "vl" == violet lock
> on Tue, 9 Feb 2010 17:00:48 -0500 writes:
> Hello r-devel,
> I have data.frame with 3 columns and I would like to group by 1
column(id),
> find the max of the third column (date) and return the data
Hello r-devel,
I have data.frame with 3 columns and I would like to group by 1 column(id),
find the max of the third column (date) and return the data for that max
date value along with the id and the value in the second column.
Example:
>dat <- data.frame(id = rep(1:3, 3), date = as.Date(rep(c("2
> -Original Message-
> From: Peter Dalgaard [mailto:p.dalga...@biostat.ku.dk]
> Sent: Tuesday, February 09, 2010 10:56 AM
> To: William Dunlap
> Cc: r-devel@r-project.org
> Subject: Re: [Rd] cbind(deparse.level=2,...) problems
>
> William Dunlap wrote:
> > Should the deparse.level=2 argu
William Dunlap wrote:
Should the deparse.level=2 argument to cbind
and rbind be abandoned? It is minimally documented,
not used in any CRAN package, and causes some problems.
Bill,
This code has been touched by Brian quite recently. Try again with a
current r-devel checkout. (Specifically, l
Should the deparse.level=2 argument to cbind
and rbind be abandoned? It is minimally documented,
not used in any CRAN package, and causes some problems.
E.g.,
(a) If a matrix input has row names but not column names
cbind(deparse.level=2,...) stops.
>
m<-matrix(11:14,nrow=2,ncol=2,dimnames=li
On 09.02.2010 10:50, g.russ...@eos-solutions.com wrote:
Full_Name: George Russell
Version: 2.10.0 and 2.11.0 Under development (unstable) (2010-02-08 r51108)
OS: Windows
Submission from: (NULL) (217.111.3.131)
c("a","b")[[c(TRUE,FALSE)]]
Error in `[[.default`(factor(c("a", "b")), c(TRUE, FA
On 09/02/2010 4:50 AM, g.russ...@eos-solutions.com wrote:
Full_Name: George Russell
Version: 2.10.0 and 2.11.0 Under development (unstable) (2010-02-08 r51108)
OS: Windows
Submission from: (NULL) (217.111.3.131)
> c("a","b")[[c(TRUE,FALSE)]]
Error in `[[.default`(factor(c("a", "b")), c(TRUE, FA
g.russ...@eos-solutions.com wrote:
Full_Name: George Russell
Version: 2.10.0 and 2.11.0 Under development (unstable) (2010-02-08 r51108)
OS: Windows
Submission from: (NULL) (217.111.3.131)
c("a","b")[[c(TRUE,FALSE)]]
Error in `[[.default`(factor(c("a", "b")), c(TRUE, FALSE)) :
recursive ind
Full_Name: George Russell
Version: 2.10.0 and 2.11.0 Under development (unstable) (2010-02-08 r51108)
OS: Windows
Submission from: (NULL) (217.111.3.131)
> c("a","b")[[c(TRUE,FALSE)]]
Error in `[[.default`(factor(c("a", "b")), c(TRUE, FALSE)) :
recursive indexing failed at level 1
I find this
This is really a question for R-help: it is not about R development
nor software development in R.
The answer to the only question I see is simple: your model depends on
'fb3' and you supplied 'height'.
On Tue, 9 Feb 2010, Randriamiharisoa Alex wrote:
Hello,
In the following I tried 3 ver
Hello,
In the following I tried 3 versions of an example in R help. Only the two
first predict command work.
After :
library(splines)
require(stats)
1)
fm1 <- lm(weight ~ bs(height, df = 5), data = women)
ht1 <- seq(57, 73, len = 200)
ph1 <- predict(fm1, data.frame(height=ht1)) # OK
plot(wom
11 matches
Mail list logo