User Tools

Site Tools


en:data_preparation_r

Differences

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

Link to this comparison view

Next revision
Previous revision
en:data_preparation_r [2017/02/28 18:52]
David Zelený created
en:data_preparation_r [2019/02/22 18:00] (current)
David Zelený [R functions]
Line 4: Line 4:
 [[{|width: 7em; background-color:​ white; color: navy}data_preparation_examples|Examples]] [[{|width: 7em; background-color:​ white; color: navy}data_preparation_examples|Examples]]
 [[{|width: 7em; background-color:​ white; color: navy}data_preparation_exercise|Exercise {{::​lock-icon.png?​nolink|}}]] [[{|width: 7em; background-color:​ white; color: navy}data_preparation_exercise|Exercise {{::​lock-icon.png?​nolink|}}]]
 +
 +===== R functions =====
 +Simple EDA (Exploratory Data Analysis):
 +  * ''​boxplot''​ - draws the boxplot of data; with argument ''​outline = TRUE''​ (default setting) draws also the outliers;
 +  * ''​hist''​ - histogram with distribution of values in the variable;
 +  * ''​qqnorm'',​ ''​qqline''​ - draws QQ plot (comparing the quantiles of values in variable x to quantiles of normal distribution) and adds the line for comparison.
 +  * ''​pairs''​ - draws the pairwise relationships between variables in the matrix/​data.frame;​ the original ''​pairs''​ function can be extended for panel functions from //Numerical Ecology with R//, which gives quite interesting tool for data overview (see details [[en:​customized_functions:​pairs2|here]]).
 +
 +Data transformation
 +  * ''​sqrt''​
 +  * ''​log'',​ ''​log10'',​ ''​log1p''​
 +
 +Data standardization
 +  * ''​scale''​
 +  * ''​decostand''​ (library ''​vegan''​)
en/data_preparation_r.1488279176.txt.gz · Last modified: 2017/10/11 20:36 (external edit)