all column with spaces in r code example
Example 1: R df space in column name
names(x)<-str_replace_all(names(x), c(" " = "." , "," = "" ))
Example 2: r remove spaces in column names
d<-read_delim(urltxt,delim='\t',)
names(d)<-make.names(names(d),unique = TRUE)