Answers for "cbind column names based on value"

0

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
Posted by: Guest on June-21-2020
0

cbind with column names

colnames(merger)[1]<-"Date"
Posted by: Guest on June-21-2020
0

cbind with column names

colnames(merger)[,1]<-"Date"
Posted by: Guest on June-21-2020

Code answers related to "cbind column names based on value"

Browse Popular Code Answers by Language