Hello, Im trying to setup a regression analysis for a school project,
However im getting an error when trying to run some code
Here's what I've got so far.
install.packages("tidyr")
install.packages("tidyverse")
install.packages("ggplot2")
install.packages("rlang")
library(tidyverse)
library(ggplot2)
library(rlang)
library(tidyr)
Df = NaturalGasCSV
head(Df)
Df$Year
Df$Volume
Dummy Variable for CUSFTA Agreement Enactment date of 1989
Df$CUSFTA = Df$Year >= 1989
Df = mutate(Df, NaturalGasCSV = Year >= 1989)
select(Df, Year, NaturalGasCSV)
** This is the error message Im getting **
Df = mutate(Df, CUSFTA = Year >= 1989)
Error in mutate(Df, CUSFTA = Year >= 1989) :
could not find function "mutate"
Any help would be greatly appreciated