Error in CSV file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in CSV file

Shivi82
Hello All,
This is an easy fix but I am not able to find the root cause of the error. I am trying to upload a csv file but it is throwing an error.
Have done a lot of research on google and some tutorial but cant find a solution hence please advice:-
Syntax is :-   aaa<-read.csv(file ="VehicleData.csv",Header=TRUE)

Error:- Error in read.table(file = file, header = header, sep = sep, quote = quote,  :
  unused argument (Header = TRUE)

Snapshot of the file:-
Weight Hours PROCESS Month Weekday Day
6828         13        INBOUND Mar              Fri 13
2504         16        INBOUND Mar              Fri 27
20         16        INBOUND Mar              Fri 27
10262 16        INBOUND Mar              Fri 27
2500         17        INBOUND Mar              Fri 13

Kindly help.
Reply | Threaded
Open this post in threaded view
|

Re: Error in CSV file

Ivan Calandra-4
Hi Shivi,

R is case sensitive and the error message that the argument "Header" is
unused (because unrecognized). Try with "header" (lower case "h") and it
should work.

HTH,
Ivan

--
Ivan Calandra, ATER
University of Reims Champagne-Ardenne
GEGENAA - EA 3795
CREA - 2 esplanade Roland Garros
51100 Reims, France
+33(0)3 26 77 36 89
[hidden email]
https://www.researchgate.net/profile/Ivan_Calandra

Le 29/05/15 10:41, Shivi82 a écrit :

> Hello All,
> This is an easy fix but I am not able to find the root cause of the error. I
> am trying to upload a csv file but it is throwing an error.
> Have done a lot of research on google and some tutorial but cant find a
> solution hence please advice:-
> Syntax is :-   aaa<-read.csv(file ="VehicleData.csv",Header=TRUE)
>
> Error:- Error in read.table(file = file, header = header, sep = sep, quote =
> quote,  :
>    unused argument (Header = TRUE)
>
> Snapshot of the file:-
> Weight Hours PROCESS Month Weekday Day
> 6828         13        INBOUND Mar              Fri 13
> 2504         16        INBOUND Mar              Fri 27
> 20         16        INBOUND Mar              Fri 27
> 10262 16        INBOUND Mar              Fri 27
> 2500         17        INBOUND Mar              Fri 13
>
> Kindly help.
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-in-CSV-file-tp4707879.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Error in CSV file

Rainer M Krug-3
In reply to this post by Shivi82
Shivi82 <[hidden email]> writes:

> Hello All,
> This is an easy fix but I am not able to find the root cause of the error. I
> am trying to upload a csv file but it is throwing an error.
> Have done a lot of research on google and some tutorial but cant find a
> solution hence please advice:-
> Syntax is :-   aaa<-read.csv(file ="VehicleData.csv",Header=TRUE)
>
> Error:- Error in read.table(file = file, header = header, sep = sep, quote =
> quote,  :
>   unused argument (Header = TRUE)
                     ^^^^^^^^^^^^^^

use "header = TRUE" instead of "Header = TRUE". R is case sensitive.

Cheers,

Rainer

>
> Snapshot of the file:-
> Weight Hours PROCESS Month Weekday Day
> 6828         13        INBOUND Mar              Fri 13
> 2504         16        INBOUND Mar              Fri 27
> 20         16        INBOUND Mar              Fri 27
> 10262 16        INBOUND Mar              Fri 27
> 2500         17        INBOUND Mar              Fri 13
>
> Kindly help.
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-in-CSV-file-tp4707879.html
> Sent from the R help mailing list archive at Nabble.com.
>
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

signature.asc (504 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error in CSV file

Shivi82
In reply to this post by Ivan Calandra-4
This ate my head like for 2 hours. God thanks for the help.