0

I've a problem loading a data frame: I've, shortly, 3 variables: Country, Capital, Population. When I use

data=read.csv(file="data.csv", head=T, sep=",")

or

data=read.csv(file="data.csv")

I obtain that

the names of the columns are translated, like first column is a row names. How I can fix that?

  • What does the original CSV look like? – David Klotz Dec 11 '17 at 20:28
  • Take a look at [this](https://stackoverflow.com/questions/12585042/why-read-csv-in-r-shift-all-my-data-by-a-column) and [this](https://stackoverflow.com/questions/37302612/column-names-shift-to-left-on-read-table-or-read-csv) questions – Antonio Dec 11 '17 at 22:12

0 Answers0