User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

en:learning:schools:s01:worksheets:ba-ws-12-1 [2015/09/22 16:22] (current)
Line 1: Line 1:
 +====== W12-1 Subsetting data frames ======
 +This worksheet goes back to the roots of this course and trains your skills in subsetting data frames. Subsetting summarizes the extraction of individual regions of a data frame (e.g. rows, columns, cells which values fulfill a certain logical expression etc.). After completing this worksheet you should know how to subset data frames using logical expressions.
 +===== Things you need for this worksheet =====
 +  * {{section>​en:​resources:​templates:​tools#​R environment&​inline}}
 +  * {{section>​en:​resources:​templates:​tools#​R studio&​inline}}
 +  * your script from [[en:​learning:​schools:​s01:​worksheets:​ba-ws-02-1|W02-1:​ Reading CSV files]]
 +===== Learning log assignments =====
 +:!: First things first: the following analysis is build on top of your script from [[en:​learning:​schools:​s01:​worksheets:​ba-ws-02-1|W02-1]]. Please copy your script "​W02-1.R",​ rename the copy to "​W12-1.R"​ and use it for the programming tasks of this worksheet.
 +:-\ Please create subsets with the following attributes: ​
 +  * Rows with a coverage of more than 50%. Use squared brackets for a subset. ​
 +  * Rows with more natural species than agricultural.
 +  * Rows with exactly 3 natural species or 3 agricultural species.
 +  * Rows with a coverage less than 5% and elevation under 1800m.
 +  * Rows where animals where recorded.
en/learning/schools/s01/worksheets/ba-ws-12-1.txt ยท Last modified: 2015/09/22 16:22 (external edit)