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 in r 
R :: adding new key in R dictionary 
R :: r most likely outcome 
R :: save large nested list to text R 
R :: r create intervals cut 
R :: Edit axis labels R 
R :: interquartile in r 
R :: extract rse from lm in r 
R :: base R change axis line width 
R :: r produce 10 alphabet 
R :: r studio 
R :: print in r 
Rust :: rust allow unused 
Rust :: rust vec cannot move 
Rust :: rust nested loop 
Rust :: rust read lines from stdin and return a vec 
Rust :: rust string slice 
Rust :: use module within another module rust 
Rust :: How to print out a variable in rust 
Rust :: rust vector insert 
Rust :: rust•armanriazi•trait 
Rust :: rust missing lifetime specifier 
Rust :: rust•armanriazi•test•mock 
Rust :: rust•armanriazi•let•const 
Rust :: do stashes decay rust 
Lua :: luau make a rainbow part 
Lua :: luau how to make a kill brick 
Lua :: lua array is empty 
Lua :: for i in pairs lua 
Lua :: repeat until in lua 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =