Here is my example
library('dplyr')
a <- c(0.2,1.3)
df_test <- data.frame(a)
df_test %>% mutate(a =round(a,0))
it produces:
a
1 0
2 1
, but does not change original dataframe df_test
. How do I assign results of mutate to the same dataframe?