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

______________________________________________
[email protected] 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.

Reply via email to