Search
 
SCRIPT & CODE EXAMPLE
 

R

Use regex to extract row in R (problem)

aName   bName   pName   call  alleles   logRatio    strength
AX-11086564 F08_ADN103  2011-02-10_R10  AB  CG  0.363371    10.184215
AX-11086564 A01_CD1919  2011-02-24_R11  BB  GG  -1.352707   9.54909
AX-11086564 B05_CD2920  2011-01-27_R6   AB  CG  -0.183802   9.766334
AX-11086564 D04_CD5950  2011-02-09_R9   AB  CG  0.162586    10.165051
AX-11086564 D07_CD6025  2011-02-10_R10  AB  CG  -0.397097   9.940238
AX-11086564 B05_CD3630  2011-02-02_R7   AA  CC  2.349906    9.153076
AX-11086564 D04_ADN103  2011-02-10_R2   BB  GG  -1.898088   9.872966
AX-11086564 A01_CD2588  2011-01-27_R5   BB  GG  -1.208094   9.239801
Comment

Use regex to extract row in R (solution 1)

subset(dat, grepl("ADN", bName)  &  pName == "2011-02-10_R2" )
Comment

Use regex to extract row in R (solution 2)

 dat[ with(dat,  grepl("ADN", bName)  &  pName == "2011-02-10_R2" ) , ]
Comment

PREVIOUS NEXT
Code Example
R :: generate pair with one same variable in r 
R :: ggplot2 reverse order of scale_brewer color 
R :: show unique R 
R :: What does | mean in r 
R :: logistic distribution CDF in r 
R :: sparklyr alternative for str_detect 
R :: to get the proportion of votes for the winning class in r 
R :: how to group rages in r 
R :: switch variable position in r dplyr 
R :: convert s4 to s3 in r 
R :: index in r 
R :: remove the colour name from ggplot 
R :: geom_abline vertical line 
R :: ggplot in R how to show information by hovering 
R :: Iteration in R 
Rust :: rust string to char array 
Rust :: rust sleep 
Rust :: rust setup in vim 
Rust :: rust struct default values 
Rust :: rust new vec 
Rust :: run or compile rust code 
Rust :: armanriazi•rust•static•vs•cons 
Rust :: sort_by in rust 
Rust :: rust ceil 
Rust :: rust sort vec of f64 
Rust :: armanriazi•rust•error•[E0072]: recursive type `List` has infinite size -- src/main.rs:3:1 | 3 | enum List { | ^^^^^^^^^ recursive type has infinite size 
Lua :: random string generator lua 
Lua :: luau region 
Lua :: try except lua 
Lua :: dictionnary lua 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =