ade)
Regards
Petr
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Wush Wu
> Sent: Monday, November 10, 2014 2:30 PM
> To: Francesca
> Cc: R help
> Subject: Re: [R] Compressing code help in a loop
>
&g
Dear Francesca,
Is this what you want?
```r
index <- c(406, 107, 207, 307, 407, 108, 208, 308, 408, 109, 209, 309, 409,
110, 210, 310, 410, 111, 211)
p_m <- match( p_int$p_made, index)
dim(p_m) <- c(dim(p_int)[1],1)
```
Best,
Wush
PhD Student Graduate Institute of Electrical Engineering, Nationa
Dear Contributors
I have a problem with a loop.
I needed to create a variable that takes values 1,2.. to 19 corresponding
to the value of a variable in a data.frame whose name is p_int$p_made and
which takes values from 406 to 211.
The problem is that this values come ordered in the wrong way
3 matches
Mail list logo