Skip to content
Prev 167694 / 398502 Next

Odp: problem with rbind

Hi
Error in file(file, "r") : cannot open the connection
In addition: Warning message:
In file(file, "r") : cannot open file 'data.txt': No such file or 
directory

gives me an error so it is not possible to reproduce your function.

However it looks like work for lapply, sapply, by or similar

see e.g.
lapply(split(iris[,1:4], iris$Species), function(x) cbind(mean(x), sd(x)))
by(iris[,1:4], iris$Species, function(x) cbind(mean(x), sd(x)))

Regards
Petr


r-help-bounces at r-project.org napsal dne 21.01.2009 06:07:40:
would
height
appears
and
http://www.R-project.org/posting-guide.html