?strsplit -- Bert
On Thu, Aug 16, 2012 at 11:41 AM, Sapana Lohani <lohani.sap...@ymail.com> wrote: > Hi, > > > I have a table in which one column has the name of the objects as shown below. > > > Name > > Budlamp-Woodcutter Complex - 15 to 60% slope (60/25/15) > Budlamp-Woodcutter Complex - 15 to 60% slope (60/25/15) > Terrarossa-Blacktail-Pyeatt Complex - 1 to 40% slope (40/35/15/10) > Terrarossa-Blacktail-Pyeatt Complex - 1 to 40% slope (40/35/15/10) > > How can I split the single column into three columns like name > (Budlamp-Woodcutter Complex), slope (15 to 60% slope) and percentage > (60/25/15) > > thanks > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. -- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm ______________________________________________ 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.