Exporting Data From R
#rdoc .course_material a{font-size:1.5em;} #rdoc .readmore a{font-size:1em;}In the previous chapters we described the essentials of R programming as well as how to import data into R. Here, youÂ’ll...
View ArticleImporting Data Into R
#rdoc .course_material a{font-size:1.5em;} #rdoc .readmore a{font-size:1em;}In the previous chapter we described the essentials of R programming. Here, youÂ’ll learn how to import data from txt, csv,...
View ArticlePreparing and Reshaping Data in R for Easier Analyses
About 80% of data analysis is spent on the process of cleaning and preparing the data (Dasu and Johnson 2003). Make sure that your data is in the right format for easier analysis in R. Read the...
View ArticleTibble Data Format in R: Best and Modern Way to Work with Your Data
Preleminary tasksInstalling and loading tibble packageCreate a new tibbleConvert your data as a tibbleAdvantages of tibbles compared to data framesSummaryRelated articlesInfosPreviously, we described...
View ArticleTidyr: Crutial Step Reshaping Data with R for Easier Analyses
What is a tidy data set?Preleminary tasksReshaping data using tidyr packageInstalling and loading tidyrExample data setsgather(): collapse columns into rowsspread(): spread two columns into multiple...
View ArticleReordering Data Frame Columns in R
Pleleminary tasksReorder column by positionReorder column by nameSummaryRelated articlesReferencesInfosPreviously, we described the essentials of R programming and provided quick start guides for...
View ArticleReordering Data Frame Rows in R
Pleleminary tasksInstall and load dplyr packageReorder rows with dplyr::arrange()Reorder rows with R base function order()SummaryRelated articlesInfosPreviously, we described the essentials of R...
View ArticleRenaming Data Frame Columns in R
Pleleminary tasksInstall and load dplyr package for renaming columnsRenaming columns with dplyr::rename()Renaming columns with dplyr::select()Renaming columns with R base functionsSummaryRelated...
View ArticleSubsetting Data Frame Rows in R
Pleleminary tasksInstall and load dplyr packageExtracting rows by position: dplyr::slice()Extracting rows by criteria: dplyr::filter()Logical comparisonsExtracting rows based on logical...
View ArticleSubsetting Data Frame Columns in R
Pleleminary tasksInstall and load dplyr packageSelecting column by positionSelect columns by namesDrop columnsUse select() programmatically inside an R functionSummaryRelated articlesInfosPreviously,...
View ArticleIdentifying and Removing Duplicate Data in R
Pleleminary tasksR base functionsFind and drop duplicate elements: duplicated()Extract unique elements: unique()Remove duplicate rows using dplyrSummaryRelated articlesInfosPreviously, we described the...
View ArticleTidyr: Crucial Step Reshaping Data with R for Easier Analyses
What is a tidy data set?Preleminary tasksReshaping data using tidyr packageInstalling and loading tidyrExample data setsgather(): collapse columns into rowsspread(): spread two columns into multiple...
View ArticleFuzzy clustering analysis - Unsupervised Machine Learning
1 Required packages2 Concept of fuzzy clustering3 Algorithm of fuzzy clustering3.1 R functions for fuzzy clustering3.1.1 fanny(): Fuzzy analysis clustering3.1.2 cmeans()4 Infos1 Required packagesThree...
View ArticleCluster Analysis in R - Unsupervised machine learning
1 Introduction1.1 Quick overview of machine learning1.2 Applications of unsupervised machine learning2 How this document is organized?3 Data preparation4 Installing and loading required R packages5...
View ArticleFactoextra R Package: Easy Multivariate Data Analyses and Elegant Visualization
What is factoextra?Why should I use factoextra?How to install and load factoextra?Main functions in factoextra packageVisualizing the outputs of dimension reduction analysesExtracting data from the...
View ArticleComputing and Adding new Variables to a Data Frame in R
Pleleminary tasksInstall and load dplyr package for renaming columnsdplyr::mutate(): Add new variables by preserving existing onesdplyr::transmute(): Make new variables by dropping existing onesUse...
View ArticleLine Plots - R Base Graphs
Pleleminary tasksR base functions: plot() and lines()Create some dataBasic line plotsPlots with multiple linesRelated articlesSee alsoInfosPreviously, we described the essentials of R programming and...
View ArticlePie Charts - R Base Graphs
Pleleminary tasksCreate some dataCreate basic pie charts: pie()Create 3D pie charts: plotix::pie3D()Related articlesSee alsoInfosPreviously, we described the essentials of R programming and provided...
View Article