Publications by Jim

How to apply a transformation to multiple columns in R?

16.07.2022

The post How to apply a transformation to multiple columns in R? appeared first on Data Science Tutorials How to apply a transformation to multiple columns in R?, To apply a transformation to many columns, use R’s across() function from the dplyr package. How to apply a transformation to multiple columns in R? There are innumerable applications...

2857 sym R (1111 sym/10 pcs)

Add new calculated variables to a data frame and drop all existing variables

17.07.2022

The post Add new calculated variables to a data frame and drop all existing variables appeared first on Data Science Tutorials Add new calculated variables to a data frame and drop all existing variables, I hope you enjoyed reading about the dplyr package magics in earlier posts, here is the last update while using dplyr package. With R’s trans...

2562 sym R (1068 sym/9 pcs)

How to Use Spread Function in R?-tidyr Part1

18.07.2022

The post How to Use Spread Function in R?-tidyr Part1 appeared first on Data Science Tutorials How to Use Spread Function in R, To “spread” a key-value pair across multiple columns, use the spread() method from the tidyr package. The basic syntax used by this function is as follows. spread(data, key value) where: data: Name of the data frame ...

2208 sym R (1276 sym/9 pcs)

How to Use Gather Function in R?-tidyr Part2

19.07.2022

The post How to Use Gather Function in R?-tidyr Part2 appeared first on Data Science Tutorials How to Use Gather Function in R?, To “collect” a key-value pair across many columns, use the gather() function from the tidyr package. The basic syntax used by this function is as follows. gather(data, key value, …) where: data: Name of the data f...

2183 sym R (1189 sym/9 pcs)

Separate a data frame column into multiple columns-tidyr Part3

20.07.2022

The post Separate a data frame column into multiple columns-tidyr Part3 appeared first on Data Science Tutorials Separate a data frame column into multiple columns, To divide a data frame column into numerous columns, use the separate() function from the tidyr package. How to Use Gather Function in R?-tidyr Part2 The basic syntax used by this fun...

2312 sym R (1214 sym/6 pcs)

Convert multiple columns into a single column-tidyr Part4

21.07.2022

The post Convert multiple columns into a single column-tidyr Part4 appeared first on Data Science Tutorials Convert multiple columns into a single column, To combine numerous data frame columns into one column, use the union() function from the tidyr package. Convert multiple columns into a single column The basic syntax used by this function is ...

2337 sym R (1379 sym/9 pcs)

How to Create Summary Tables in R

26.07.2022

The post How to Create Summary Tables in R appeared first on Data Science Tutorials How to Create Summary Tables in R?, The describe() and describeBy() methods from the psych package is the simplest to use for creating summary tables in R. How to apply a transformation to multiple columns in R? library(psych) Let’s create a summary table descri...

3024 sym R (2066 sym/11 pcs)

How to Create an Interaction Plot in R?

27.07.2022

The post How to Create an Interaction Plot in R? appeared first on Data Science Tutorials How to Create an Interaction Plot in R?, To find out if the means of three or more independent groups that have been divided based on two factors differ, a two-way ANOVA is performed. When we want to determine whether two distinct factors have an impact on a...

3786 sym R (1434 sym/6 pcs) 2 img

How to Standardize Data in R?

27.07.2022

The post How to Standardize Data in R? appeared first on Data Science Tutorials How to Standardize Data in R?, A dataset must be scaled so that the mean value is 0 and the standard deviation is 1, which is known as standardization. The z-score standardization, which scales numbers using the following formula, is the most used method for doing thi...

2436 sym R (1983 sym/10 pcs)

How to convert characters from upper to lower case in R?

28.07.2022

The post How to convert characters from upper to lower case in R? appeared first on Data Science Tutorials How to convert characters from upper to lower case in R?. This article discusses how to change a character’s case in R from upper to lower and vice versa. Will include examples for the R methods tolower(), toupper(), casefold(), and chartr...

2562 sym R (437 sym/6 pcs)