mutate
doesn’t change the tbl_df in place, it just returns the new, changed tbl_df. You need to save the results:
fltr <- mutate(fltr, cat = "xxxxx")
More Related Contents:
- Replace values greater than zero with 1 in r
- How does one access the piped data.frame in dplyr::funs?
- Extract row corresponding to minimum value of a variable by group
- How to select the rows with maximum values in each group with dplyr? [duplicate]
- Filter multiple values on a string column in dplyr
- Concatenate strings by group with dplyr [duplicate]
- dplyr mutate rowSums calculations or custom functions
- Can dplyr package be used for conditional mutating?
- R Conditional evaluation when using the pipe operator %>%
- What does %>% function mean in R?
- Dplyr join on by=(a = b), where a and b are variables containing strings?
- R cumulative sum by condition with reset
- dplyr: how to reference columns by column index rather than column name using mutate?
- Proper idiom for adding zero count rows in tidyr/dplyr
- Why is enquo + !! preferable to substitute + eval
- Add NAs to make all list elements equal length
- Assign intermediate output to temp variable as part of dplyr pipeline
- pass function arguments to both dplyr and ggplot
- Reshape from long to wide and create columns with binary value
- dplyr broadcasting single value per group in mutate
- Can dplyr join on multiple columns or composite key?
- How to deal with nonstandard column names (white space, punctuation, starts with numbers)
- dplyr if_else() vs base R ifelse()
- Using column names as function arguments
- How to change the now deprecated dplyr::funs() which includes an ifelse argument?
- Apply a ggplot-function per group with dplyr and set title per group
- Mutate multiple variable to create multiple new variables
- dplyr: put count occurrences into new variable [duplicate]
- Add row in each group using dplyr and add_row()
- How to replace certain values in a specific rows and columns with NA in R?