Skip to content
Prev 229275 / 398500 Next

help splitting a data frame

On Thu, 29 Jul 2010, kayj wrote:

            
read.table(textConnection(gsub("[-:]","\t",readLines("your.data.file.tab"))))

or

read.table(textConnection(chartr("-:","\t\t",readLines("your.data.file.tab"))))

HTH,

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901