Dear R users,


Suppose the csv file contains header names such as *"Nike, dunk"*, *"Converse,
All stars"* etc

When imported to R (with header = T option), the column names are given by:

            *"Nike..dunk"*      *"Converse..All.stars"*

I have tried the following command to convert these column names to the
original names as in the input source. (i.e substituting "*.."* to "*, *")

chartr("..",", ",colnames(dat))
> "Nike  dunk"     "Converse  All stars"

Not getting what Im expecting...

Greatly appreciate for your help in resolving this matter.






Steven

	[[alternative HTML version deleted]]


