mutate_function: Create a new column that designates where each game was...

View source: R/mutate_function.R

mutate_functionR Documentation

Create a new column that designates where each game was played. Also create a column that gives the score differences (team1−team2)

Description

Mutate where the game was played into a new column We are just going to use the second name column to do this

Usage

mutate_function(basketball_data)

Arguments

basketball_data

the data frame we are using to do the manipulation

Details

The second piece of the code is to get the difference in the scores The absolute value function is used to not get any negative scores


akhilbandhu/basketballpackage documentation built on April 21, 2022, 5:37 p.m.