Hi:
Maybe something like this?
txt <- "Main Group\t1000\tMP Test\tMP Test, 1\tAudio (1, f1-qaddara.aiff)\tl
(target is right word)\tl\tPressed\tl (target is right
word)\tC\t3111\t\t\t\t\t"
txtdf <- as.data.frame(rbind(txt, txt, txt, txt, txt)) # create toy data
frame
res <- t(as.matrix(apply(t
Thanks, that worked great, but I am having trouble generalizing it to my
entire data set for some reason.
I have 318 rows like this:
"Main Group\t1000\tMP Test\tMP Test, 1\tAudio (1, f1-qaddara.aiff)\tl
(target is right word)\tl\tPressed\tl (target is right
word)\tC\t3111\t\t\t\t\t"
and the comm
If you want a matrix, then just create one from the data you have:
mydata <- matrix(strsplit(x, '\t')[[1]], nrow=1)
On Thu, Jun 3, 2010 at 1:30 PM, Kevin Burnham wrote:
> Would somebody please help me break this row:
>
> "Main Group\t1000\tMP Test\tMP Test, 1\tAudio (1, f1-qaddara.aiff)\tl
> (ta
3 matches
Mail list logo