Forum Discussion
Anonymous
10 years agoNot applicable
Fields name with space in R
Simple example: Fields name containing a space, moved into a dataframe with the new R visualization: #Create Dataframe #dataset <-data.frame (Order Quantity, Gross Profit) How can I reference...
BeardyGeorge
10 years agoAdvocate I
I managed to find the solution, which can be found here. The R code to automatically od what you requested for all columns is:
names(dataset) <- gsub(" ","_",names(dataset))