library(dplyr)
customer <- customer %>%
rowwise() %>%
mutate(age = age(as.Date(dateofbirth)))
2
solved How to add new column in R during for loop?
library(dplyr)
customer <- customer %>%
rowwise() %>%
mutate(age = age(as.Date(dateofbirth)))
2
solved How to add new column in R during for loop?