Skip to content
Prev 334511 / 398506 Next

Chinese Garbled

You have to, at least, use the check.names=FALSE argument to read.csv.

E.g.,
  > str(read.csv(text="%*,&*,$\n1,2,4\n2,3,5"))
  'data.frame':   2 obs. of  3 variables:
   $ X..  : int  1 2
   $ X...1: int  2 3
   $ X.   : int  4 5
  > str(read.csv(text="%*,&*,$\n1,2,4\n2,3,5", check.names=FALSE))
  'data.frame':   2 obs. of  3 variables:
   $ %*: int  1 2
   $ &*: int  2 3
   $ $ : int  4 5

There may be more you have to do.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com