On Wed, Oct 17, 2012 at 7:45 AM, Balqis <aehan3...@gmail.com> wrote:
> Sep=cbind(kIp,k02p,k04p,k07p)
> Sep=as.data.frame(Sep)
>

I see Rui has already taken a stab at your question, but I just want
to chime in to say the preceeding is really a terrible idiom. It would
be much _much_ better to write

Sep = data.frame(klp, k02p, k04p, k07p)

data.frame() is the function for making data.frames(). If you cbind()
things together, you usually wind up with a matrix which requires all
its elements to be of one type. This, of course, defeats the entire
point of data frames which is to allow different columns to have
different points.

Cheers,
Michael

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to