Skip to content

Instantly share code, notes, and snippets.

@bradurani
Created October 3, 2013 05:40
Show Gist options
  • Save bradurani/6805499 to your computer and use it in GitHub Desktop.
Save bradurani/6805499 to your computer and use it in GitHub Desktop.
RSummaryStatistics
#given timeframe
mean(timeframe$colname)
sd(timeframe$colname)
describe(timeframe) #table of common summary stats
#filtering
describeBy(impact, impact$condition) #split into separate table based on condition
control <- subset(impact, impact[, 2]=="control") #new timeframe filtered by col 2 == "control"
concussed <- subset(impact, impact[, 2]=="concussed") #new timeframe filtered by col 2 == "concussed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment