Skip to content

Data Science Tutorials

  • Home
  • R
  • Statistics
  • Course
  • Contact
  • About Us
  • Toggle search form
  • Best Data Science YouTube Tutorials
    Best Data Science YouTube Tutorials Free to Learn Course
  • Survival Plot in R
    How to Perform a Log Rank Test in R R
  • How to Create a Frequency Table by Group in R
    How to Create a Frequency Table by Group in R? R
  • Count Observations by Group in R
    Count Observations by Group in R R
  • Best Books on Data Science with Python
    Best Books on Data Science with Python Course
  • Best GGPlot Themes
    Best GGPlot Themes You Should Know R
  • Arrange the rows in a specific sequence in R
    Arrange the rows in a specific sequence in R R
  • How to Scale Only Numeric Columns in R
    How to Scale Only Numeric Columns in R R

Tag: dplyr

How to Scale Only Numeric Columns in R

Posted on August 4August 4 By Jim No Comments on How to Scale Only Numeric Columns in R
How to Scale Only Numeric Columns in R
Tweet
Share
Share
Pin

How to Scale Only Numeric Columns in R, To scale only the numeric columns in a data frame in R, use the dplyr package’s following syntax. Best Books to learn Tensorflow – Data Science Tutorials library(dplyr) df %>% mutate(across(where(is.numeric), scale)) How to actually use this function is demonstrated in the example that follows. Use dplyr…

Read More “How to Scale Only Numeric Columns in R” »

R

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

Posted on July 18July 17 By Jim No Comments on Add new calculated variables to a data frame and drop all existing variables
Add new calculated variables to a data frame and drop all existing variables
Tweet
Share
Share
Pin

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 transmute() function, you can drop all of the existing variables and add new calculated variables to a data…

Read More “Add new calculated variables to a data frame and drop all existing variables” »

R

How to apply a transformation to multiple columns in R?

Posted on July 17July 16 By Jim No Comments on How to apply a transformation to multiple columns in R?
How to apply a transformation to multiple columns in R?
Tweet
Share
Share
Pin

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 for this function, however, the following examples highlight some typical ones: First Approach: Apply Function to…

Read More “How to apply a transformation to multiple columns in R?” »

R

How to change the column positions in R?

Posted on July 15July 15 By Jim No Comments on How to change the column positions in R?
How to change the column positions in R?
Tweet
Share
Share
Pin

How to change the column positions in R, you can rearrange the columns in a data frame by using the relocate() function from the dplyr package. The following techniques can be used to alter the column positions. Method 1: Move One Column to Front move ‘x’ column to the front df %>% relocate(x) Method 2:…

Read More “How to change the column positions in R?” »

R

Subset rows based on their integer locations-slice in R

Posted on July 14July 14 By Jim No Comments on Subset rows based on their integer locations-slice in R
Subset rows based on their integer locations-slice in R
Tweet
Share
Share
Pin

Subset rows based on their integer locations, R has the slice() function, which allows you to subset rows according to their integer places. Statistical test assumptions and requirements – Data Science Tutorials The following techniques can be used to subset specific rows in a data frame: Approach 1: Subset One Particular Row get row 3…

Read More “Subset rows based on their integer locations-slice in R” »

R

How to do Conditional Mutate in R?

Posted on July 13 By Jim No Comments on How to do Conditional Mutate in R?
How to do Conditional Mutate in R?
Tweet
Share
Share
Pin

How to do Conditional Mutate in R, It’s common to wish to add a new variable based on a condition to an existing data frame. The mutate() and case when() functions from the dplyr package make this task fortunately simple. Cumulative Sum calculation in R – Data Science Tutorials With the following data frame, this…

Read More “How to do Conditional Mutate in R?” »

R

How to Use Mutate function in R

Posted on July 11July 8 By Jim 1 Comment on How to Use Mutate function in R
How to Use Mutate function in R
Tweet
Share
Share
Pin

How to Use Mutate function in R, This article demonstrates how to add additional variables to a data frame using R’s mutate() function. Artificial Intelligence Examples-Quick View – Data Science Tutorials How to Use Mutate function in R The dplyr library has the following functions that can be used to add additional variables to a…

Read More “How to Use Mutate function in R” »

R

Convert Multiple Columns to Numeric in R

Posted on July 10July 8 By Jim 2 Comments on Convert Multiple Columns to Numeric in R
Convert Multiple Columns to Numeric in R
Tweet
Share
Share
Pin

Convert Multiple Columns to Numeric in R, Using the dplyr package, you can change many columns to numeric using the following techniques. The examples that follow demonstrate each technique in action. Calculate the p-Value from Z-Score in R – Data Science Tutorials Example 1: Convert Specific Columns to Numeric Let’s say we have the R…

Read More “Convert Multiple Columns to Numeric in R” »

R

How to Rank by Group in R?

Posted on July 9July 8 By Jim No Comments on How to Rank by Group in R?
How to Rank by Group in R?
Tweet
Share
Share
Pin

How to Rank by Group in R?, The basic syntax for ranking variables by the group in dplyr is as follows. The examples that follow with the given data frame demonstrate how to utilize this syntax in practice. 5 Free Books to Learn Statistics For Data Science – Data Science Tutorials Let’s create a data…

Read More “How to Rank by Group in R?” »

R

How to Calculate Lag by Group in R?

Posted on July 9July 8 By Jim 2 Comments on How to Calculate Lag by Group in R?
How to Calculate Lag by Group in R?
Tweet
Share
Share
Pin

How to Calculate Lag by Group in R?, The dplyr package in R can be used to calculate lagged values by group using the following syntax. Subsetting with multiple conditions in R – Data Science Tutorials df %>%   group_by(var1) %>%   mutate(lag1_value = lag(var2, n=1, order_by=var1)) The data frame containing the lagged values gains…

Read More “How to Calculate Lag by Group in R?” »

R

Posts navigation

1 2 … 4 Next




  • About Us
  • Contact
  • Disclaimer
  • Privacy Policy
  • YouTube
  • Twitter
  • Facebook
  • Best Books About Data Analytics
  • How to Scale Only Numeric Columns in R
  • Best Books to Learn Statistics for Data Science
  • How to Add Superscripts and Subscripts to Plots in R?
  • How to convert characters from upper to lower case in R?

Check your inbox or spam folder to confirm your subscription.




 https://www.r-bloggers.com
  • How to Use “not in” operator in Filter
    How to Use “not in” operator in Filter R
  • How to Find Unmatched Records in R
    How to Find Unmatched Records in R R
  • How to Use Spread Function in R
    How to Use Spread Function in R?-tidyr Part1 R
  • Artificial Intelligence Examples
    Artificial Intelligence Examples-Quick View Course
  • similarity measure between two populations
    Similarity Measure Between Two Populations-Brunner Munzel Test Statistics
  • How to Replace String in Column in R
    How to Replace String in Column using R R
  • Filtering for Unique Values
    Filtering for Unique Values in R- Using the dplyr R
  • Best GGPlot Themes
    Best GGPlot Themes You Should Know R

Copyright © 2022 Data Science Tutorials.

Powered by PressBook News WordPress theme