[R] help with paste

From: Andrew Criswell <r-stats_at_arcriswell.com>
Date: Mon 12 Jul 2004 - 16:16:06 EST


Hello All:

Suppose the following little data frame:

> x <- data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1))
>
> x$cat

[1] 8 2 3 6 1
>

How can I get the paste() function to do the same thing. The command below is obviously wrong

> paste(x, cat, sep = "$")
>

Thanks,
ANDREW



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 12 23:53:29 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:37 EST