[R] Unpaste Problem

From: A Mani <a.manigs_at_gmail.com>
Date: Sat 27 Aug 2005 - 03:09:49 EST


Hello,

        Easy ways to "unpaste"?
 xp <- paste(x2, x3) # x2, x3 are two non-numeric columns.

.............
.........................
xfg <- data.frame(xp,sc1, sc2, sc3) # sc1,sc2, sc3 are numeric cols.

I want xp to be split up to form a new dataframe of the form (x3, sc1, sc2, sc3).
IMPORTANT info : elements of xp have the form abc<space>efg, with abc in x2 and efg in x3.

Thanks in advance,

-- 
A. Mani
Member, Cal. Math. Soc

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Aug 27 03:21:09 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:56 EST