I want to add new column Petal which is product of two other columns to the data frame and it works with below code
b %>%
mutate(Petal = Petal.Length * Petal.Width) %>%
head
but the problem is when I print b
after, Petal diapears.
I tried also this but it brings error
b <- mutate(Petal = Petal.Length*Petal.Width)
so, how can I save it?