read.csv row.names

前端 未结 4 1694
你的背包
你的背包 2020-12-17 15:34

I\'m trying to read a column oriented csv file into R as a data frame.

the first line of the file is like so:

sDATE, sTIME,iGPS_ALT, ...

4条回答
  •  孤街浪徒
    2020-12-17 15:56

    I faced the same issue. It got resolved by adding header=TRUE like below

    tempdata <- read.csv("C:\\File.csv",header=TRUE)
    

    The first column which was the date column got aligned properly.

提交回复
热议问题