#generate example data
tsl <- tsl_simulate()
#list all column names
tsl_colnames_get(
tsl = tsl,
names = "all"
)
#change one column name
names(tsl[[1]])[1] <- "new_column"
#all names again
tsl_colnames_get(
tsl = tsl,
names = "all"
)
#shared column names
tsl_colnames_get(
tsl = tsl,
names = "shared"
)
#exclusive column names
tsl_colnames_get(
tsl = tsl,
names = "exclusive"
)
Run the code above in your browser using DataLab