Re: [R] Matrix Question

2011-06-02 Thread Bill.Venables
Here is one way you might do it. > con <- textConnection(" + characteristics_ch1.3 Stage: T1N0 Stage: T2N1 + Stage: T0N0 Stage: T1N0 Stage: T0N3 + ") > txt <- scan(con, what = "") Read 11 items > close(con) > > Ts <- grep("^T", txt, value = TRUE) > Ts <- sub("T([[:digit:]]+)N([[:digit:]]+)",

Re: [R] matrix question

2008-08-19 Thread Rolf Turner
On 20/08/2008, at 10:08 AM, Altaweel, Mark R. wrote: Hi, I have a vector and a list, with data I would like to multiply together. No you haven't. You have two ***lists***. Lists and vectors are not the same thing. If you don't distinguish between them you will co