[R] dbWriteTable(con, access_log, overwrite = F).....

Milan Bouchet-Valat nalimilan at club.fr
Mon Jan 16 17:36:18 CET 2012


Le lundi 16 janvier 2012 à 14:14 +0100, Poul Kristensen a écrit :
> I am new to R.
> 
> My goal is to make a crosstable from a Apache access.log, which I want
> to load into PostgreSQL database at first to
> learn more abour R and DBI and datatypes. When the I have got the
> access.log in the database I will try to make the
> crosstable!
> 
> Trying to load the Apache access.log into PostgreSQL I get an error.
> 
> dbWriteTable(con, access_log, overwrite = F);
> 
> returns
> 
> Error in .Internal(is.vector(x, mode)) : 'x' is missing?
I don't know anything about this function, but from its documentation,
it seems you forgot to pass a name for the table. Maybe something like
that would work:
dbWriteTable(con, "access_log", access_log, overwrite = F)


Cheers



More information about the R-help mailing list