Re: [R] ff package when reading .csv files

From: Peter Ehlers <ehlers_at_ucalgary.ca>
Date: Fri, 11 Jun 2010 05:50:18 -0600

On 2010-06-11 0:37, dhanush wrote:
>
> Hi
>
>
> My aim is to read a large .csv file into R. I ran the following code and am
> using R version 10.1 on Windows.
>
>> library(ff)
>> read.csv.ffdf(x=NULL,"file.csv",fileEncoding="",nrows=-1,first.rows=NULL,next.rows=NULL,levels=NULL,appendLevels=TRUE,FUN="read.table",transFUN=NULL,asffdf_args=list(),BATCHBYTES=getOption("ffbatchbytes"),VERBOSE=FALSE)
>
> Error in read.table.ffdf(FUN = "read.csv", ...) :
> formal argument "FUN" matched by multiple actual arguments
>
> Can anyone help me to fix this error. Thanks in advance.

read.csv.ffdf() is just a wrapper for read.table.ffdf() with FUN set to "read.csv". You should not use any FUN= argument in read.csv.ffdf. Either call read.table.ffdf with FUN="read.csv" or call read.csv with no FUN specification.

Nor is there any need to specify all the other arguments to take their default values.

   -Peter Ehlers



R-help_at_r-project.org mailing list
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. Received on Fri 11 Jun 2010 - 11:53:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Jun 2010 - 12:00:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive