Skip to content

Instantly share code, notes, and snippets.

@tengpeng
Created February 5, 2016 21:08
Show Gist options
  • Select an option

  • Save tengpeng/bd0d46e3b5dbdbdc3ee9 to your computer and use it in GitHub Desktop.

Select an option

Save tengpeng/bd0d46e3b5dbdbdc3ee9 to your computer and use it in GitHub Desktop.
subset r
nci = subset(nci, select = c("CNS", "RENAL", "BREAST", "NSCLC", "MELANOMA", "OVARIAN", "LEUKEMIA", "COLON"))
nci = nci[, c("CNS", "RENAL", "BREAST", "NSCLC", "MELANOMA", "OVARIAN", "LEUKEMIA", "COLON")]
nci = nci[, which(colnames(nci) %in% c("CNS", "RENAL", "BREAST", "NSCLC", "MELANOMA", "OVARIAN", "LEUKEMIA", "COLON"))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment