OK Dimitris, you where right.
Thank you.
Regards
> From: kurtney...@hotmail.com
> To: d.rizopou...@erasmusmc.nl
> Date: Wed, 28 Jan 2009 10:02:06 +
> CC: r-h...@stat.math.ethz.ch
> Subject: Re: [R] Create a vector from matrix.
>
>
> Thanks Dimitris,
>
>
, tell me please.
Regards
Patricia
> Date: Wed, 28 Jan 2009 10:56:32 +0100
> From: d.rizopou...@erasmusmc.nl
> To: kurtney...@hotmail.com
> CC: r-h...@stat.math.ethz.ch
> Subject: Re: [R] Create a vector from matrix.
>
> try this:
>
> s1 <- letters[1:10]
> e <
try this:
s1 <- letters[1:10]
e <- LETTERS[1:10]
q <- c("a","a","c","b","d","d","a","e","b","a")
e[match(q, s1)]
I hope it helps.
Best,
Dimitris
patricia garcía gonzález wrote:
Hi all,
I am trying to create a vector with the information contained in a determined
matrix. Let me explain m
Hi all,
I am trying to create a vector with the information contained in a determined
matrix. Let me explain myself. I have a vector like this:
q <- c("a","a","c","b","d","d","a","e","b","a")
And a matrix like:
s1 <- c("a","b","c","d","e","f","g","h","i","j")
e <- c("
4 matches
Mail list logo