Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about deselect

Read more about deselect

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)

Questions - deselect

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...
test-img

H C

grepl

deselect

Votes: 0

Answers: 1

Latest Answer

I've solved the problem. I changed this dta.s <-subset(dta, !grepl('KK00',colnames(dta))) to this dta <- dta[,!grepl('KK00.', colnames(dta))] Now, it works.
test-img

H C

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved