Topics
R
About this topic: Articles tagged __TAG__
Showing 148 articlesRelated tags
Topics
Articles
Showing 148 articles
How-tos
How to Read a Text File Line by Line in R
This article shows how to process or read a plain text file line by line in R.
↗
How-tos
How to Pass Command Line Arguments to R CMD BATCH and Rscript
This article shows how to pass command line arguments to R CMD BATCH and Rscript, and how to save the output as a file.
↗
How-tos
How to Remove User-Defined Objects From the Workspace in R
This article shows how to remove user-defined objects from the workspace in R using the rm() function and the Environment tab of R Studio.
↗
How-tos
How to Uninstall R and All Its Packages on Windows
This article shows how to uninstall R and all its packages on Windows. Uninstalling R only removes the original installation files. To remove the packages, we need to find the …
↗
How-tos
How to Find the Null Space of a Matrix in R
This article shows how to find the null space of a matrix in R using the nullspace function of the pracma package.
↗
How-tos
How to Remove Object Names and Dimnames in R
This article shows how to remove the names and dimnames of objects and get only the values in R. Different approaches such as the unname() function, the as.vector() function, etc. …
↗
How-tos
How to Set Location of Current File as Working Directory in R Studio
This article shows how to set the location or path of the current R script or Rmd file as the working directory in R Studio, without any user intervention or interaction. It shows …
↗
How-tos
How to Generate a Regular Sequence of Numbers in R
This article shows how to easily generate a regular sequence of numbers in R using the colon operator and the seq() function.
↗
How-tos
How to Convert Multiple Columns From Integer to Numeric Type in R
This article shows how to convert multiple columns from integer to a numeric type using a single command in R. The examples include base R and dplyr approaches to perform the …
↗
How-tos
How to Interpret Output of system.time Function in R
This article briefly explains what is being measured by the system.time function in R. It then provides simple examples to illustrate what each of the components user, system and …
↗
How-tos
How to Use the Source Function to Run Another R Script
This article demonstrates how to use the source function of base R to run another R script which may be located in the same directory as the first script or in a different …
↗
How-tos
How to Customize the PCA Biplot in R
This article demonstrates how to customize the PCA biplot in R. Several defaults are modified to obtain a more useful visualization of the biplot.
↗
How-tos
How to Use the if and if...else Statements in R
This article describes the syntax of if and if-else constructs of R, emphasizing the peculiarities. The code examples illustrate all the points provided.
↗
How-tos
How to Use the group_by Function in R Dplyr
This article shows how to use the group_by() function from R's dplyr package to group rows for data analysis. It shows how we can combine group_by() with the summarize() or …
↗
How-tos
How to Perform K-Means Clustering in Base R
This article shows how to perform K-means clustering using base R functions. All steps, including the elbow bend plot to choose K, and the PCA scatter plot when there are more than …
↗
How-tos
How to Create and Visualize a Correlation Matrix in R
This article first shows how to prepare data to create a correlation matrix in R. It then demonstrates the use of the cor() function to create a correlation matrix, and the …
↗
How-tos
How to Test for Normality of Data in R
This article demonstrates three techniques to assess the normality of ungrouped, univariate data in R. Visually, we can assess the normality using a histogram or a Q-Q plot. For a …
↗
How-tos
How to Create and Interpret Dummy Variables in R
This article shows how to easily create dummy variables in R using the fastDummies package. It concludes with a section on how to interpret the dummy variables in a linear …
↗
How-tos
How to Use Cross-Validation for a KNN Classification Model in R
This article demonstrates how to use the caret package to build a KNN classification model in R using the repeated k-fold cross-validation technique. The train function also …
↗
How-tos
How to Perform Logistic Regression in R
This tutorial demonstrates how to perform logistic regression in R.
↗
How-tos
How to Concatenate Strings in R
This tutorial demonstrates how to concatenate strings in R.
↗
How-tos
The fread() Function in R
This tutorial demonstrates how to use fread function in R.
↗
How-tos
How to Perform Polynomial Regression in R
This tutorial demonstrates how to perform polynomial regression in R.
↗
How-tos
How to Omit NA in R
This tutorial demonstrates how to remove unnecessary NA values using na.omit() in R.
↗
No articles found
Try clearing the filters.