skip to main | skip to sidebar

Useful functions and commands

Thursday, October 1, 2009

list names from data that contain charname

## list names from data frames that contain charname

grepnames = function(charname,data)
  {
    names(data)[grep(charname,names(data))]
  }

Posted by Haky at 8:30 AM
Labels: R-code

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (1)
    • ►  July (1)
  • ►  2014 (19)
    • ►  October (1)
    • ►  August (3)
    • ►  July (3)
    • ►  June (4)
    • ►  May (1)
    • ►  March (5)
    • ►  February (2)
  • ►  2012 (9)
    • ►  July (1)
    • ►  April (3)
    • ►  February (2)
    • ►  January (3)
  • ►  2010 (5)
    • ►  June (1)
    • ►  March (2)
    • ►  February (2)
  • ▼  2009 (15)
    • ►  December (4)
    • ►  November (2)
    • ▼  October (6)
      • plots boxplot, stripchart and mean
      • calculate number of minor alleles from A G format
      • plink coding --recodeAD
      • R table, percentages and chi square test like in s...
      • order data frames in R
      • list names from data that contain charname
    • ►  September (2)
    • ►  April (1)
  • ►  2007 (14)
    • ►  July (2)
    • ►  June (4)
    • ►  May (3)
    • ►  March (2)
    • ►  February (3)
  • ►  2006 (7)
    • ►  December (6)
    • ►  November (1)
  • ►  2004 (4)
    • ►  December (3)
    • ►  June (1)

Contributors

  • Haky
  • Yarko

google