python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
deselect matrix columns using subsed and !grepl functions
I have a single cell RNA sequencing matrix 'dta' with some cells named with KK00 (KK00.xx).
I would like to deselect all these cells.
So I wrote dta.s <-subset(dta, !grepl('KK00',colnames(dta)))
It...

H C
Votes: 0
Answers: 1
ifelse grepl() more than 50 rows at once?
I am trying to tidy some data. I have random strings that I am trying to classify as numbers.
table <- "x count
1 k
2 2k
3 k1e
4 k2e
5 2k1e
6 k2
7 ke
8 k3e
9 1ek
10 ek
11 x...
cgxytf
Votes: 0
Answers: 1
Create a column based on multiple patterns
I have a column with 692 degree titles that I need to categorize as: certificate, associate, bachelor, master or higher. There is a lot of inconsistency in a degree titles. For example, a BS degree mi...
Shannon
Votes: 0
Answers: 1