5

When i read a csv file through R, all specific symbols(>,<) are replaced by points(.).

for example:

csv file: users>75

R shows users.75

How i can avoid this?

Mestralx
  • 131
  • 2
  • 10
  • possible duplicate of [X. in my column names of an R data frame](http://stackoverflow.com/questions/10441437/x-in-my-column-names-of-an-r-data-frame) – zx8754 Nov 09 '14 at 17:26

1 Answers1

10

You can use check.names=FALSE in your read.csv call.

From ?read.csv:

check.names: logical. If ‘TRUE’ then the names of the variables in the data frame are checked to ensure that they are syntactically valid variable names. If necessary they are adjusted (by ‘make.names’) so that they are, and also to ensure that there are no duplicates.

GSee
  • 48,880
  • 13
  • 125
  • 145