Skip to content
Back to formatted view

Raw Message

Message-ID: <m2mw0nvj8l.fsf@krugs.de>
Date: 2015-05-29T09:14:02Z
From: Rainer M Krug
Subject: Error in CSV file
In-Reply-To: <1432888889610-4707879.post@n4.nabble.com> (Shivi's message of "Fri, 29 May 2015 01:41:29 -0700 (PDT)")

Shivi82 <shivibhatia at ymail.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150529/028bff49/attachment.bin>