Category: R

Convert character strings to Date in R

Convert character strings to Date in R, Will show you how to use the as function to convert a character to the Date class. R Date Function Definition and Basic R as is a...

How to Create Ordered Factor in R

How to Create Ordered Factor in R, Will show you how to make ordered factors in R by using the ordered() function. How to Create Ordered Factor in R Let’s get started. Example 1:...

Summary statistics in R

Summary statistics in R, This tutorial will show you how to use the aggregate function in the R programming language. Definition: The aggregate R function computes summary statistics for a data set’s subgroups. R...

How to add NA values into a factor level

How to add NA values into a factor level, This article describes how to use the addNA function in the R programming language to convert NA into a new factor. Let’s get started right...

How to Put margins on tables or arrays in R

How to Put margins on tables or arrays in R, We’ll show you how to use the addmargins function in R to add margins to tables or arrays. The tutorial will include two examples...

How to add straight lines to a plot in R

How to add straight lines to a plot in R, The R function abline adds straight lines to a plot. Basic R Syntax: The abline function’s basic R programming syntax is provided below. abline(h...

How to Measure Execution Time in R

How to Measure Execution Time in R, To compare the execution times of different expressions, use R’s microbenchmark package. To do so, use the following syntax: library(microbenchmark) Let’s compare two different expressions’ execution times...

How to Rename Files in R

How to Rename Files in R?, The methods listed below can be used to rename files in R: How to Rename Files in R The examples that follow demonstrate each technique in action. Rename...

Linear Interpolation in R-approx

Linear Interpolation in R, You will discover how to use the approx and approxfun interpolation functions in this R tutorial. Two examples of how to use the approx and approxfun functions for interpolation are...

Test if two objects are nearly equal in R

Test if two objects are nearly equal in R, Learn how to use them all.equal function to determine whether two items are nearly equal in this R programming tutorial. This is how you do...