Thx alot works perfect!
//Joel
--
View this message in context:
http://r.789695.n4.nabble.com/Extract-elements-that-starts-with-tp3046332p3046420.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https
Hi,
A reproducible example would have been nice...
Here is one:
vect <- c(rep("| A010 |",3), rep("| A020 |",5), rep("| A021 |",2))
df <- data.frame(a=vect, b=rnorm(10), d=rnorm(10))
df[grep(pattern="A02", df$a), ]
HTH,
Ivan
Le 11/17/2010 10:16, Joel a écrit :
Hi
I got an table that contains
Hi
I got an table that contains this colum and i wonder if there is any nice
way to extract all rows that contains all dose that start with A02, so all
the rows that have A020 and A021 etc etc...
| A010 |
| A010 |
| A010 |
| A020 |
| A020 |
| A020 |
| A020 |
| A020 |
| A021 |
| A021 |
Thx for
3 matches
Mail list logo