Teraisa
0
Q:

cbind column names based on value

library(dplyr)
test_data %>%
     mutate(!! y_attribute := NA)
#   col1 Survived
#1    1       NA
#2    2       NA
#3    3       NA
#4    4       NA
#5    5       NA
0
colnames(merger)[1]<-"Date"
0
colnames(merger)[,1]<-"Date"
0

New to Communities?

Join the community