Documents

R Course 2014: Lecture 6

Categories
Published
of 21
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Description
Lecture 6: loops, control structures & apply family
Transcript
  Lecture 6: loops, control structures & apply family Simeon Lisovski Ben Fanson    … last week … dplyr 1)introduce the grammar of data manipulation 2)table verbs 3)building sentences 4)restructuring    … last week … dplyr ds %.% select(treatment, growth_rate) %.% group_by(treatment) %.% mutate( mean_growth = mean(growth_rate) ) ds %.% select(treatment, growth_rate) %.%   mutate( growth_rate2 = growth_rate ^2 ) %.% filter( treatment == 't1' )    … this week …   1)loops (for, while, repeat) 2) Control structure (if… else)  3)Loop families (apply, lapply, tapply)
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks