Suppose the next dataframe:
df <- data.frame("level.3.london"=seq(1,5), "level.2.bogota"=seq(1,5), "level"=seq(1,5))
Is it possible to replace .
for an space over the dataframe column names?
The idea is to get the next output:
names(df)
Console output:
[1] "level 3 london" "level 2 bogota" "level"
_
– Sweepy Dodomy var <- 1:10
is valid, strangely enough. You just have to use backticks around the variable name (which I can't seem to get working in a comment). We're all learning today! – jdobres