0
Hi, I’m working with a database that I usually access with Workbench. To start importing directly into R, I am using the Rmysql library. I can make the connection and find my tables, but when it comes to importing with tbl it returns me a list. How can I make it return me a df (Tabela1 object in the example)?
Example:
con <- src_mysql(dbname = "dbname",
host = "localhost",
port = 3306,
user = "user",
password = "my password")
tabela1 <- tbl(con, "tabela1")
I also tried the command dbReadTable , but it returns me an error message:
*Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘dbReadTable’ for signature ‘"src_dbi", "character"’*
Thanks for your help!
I tried to connect with this package but it returns me another weird error: "Error in (Function (classes, fdef, mtable) : Unable to find an inherited method for Function ?dbConnect' for Signature"Missing"
– Jessica Voigt
I think I gave the package wrong. This is a specific one for the server that we use. The package that is most Generico is odbc instead of Rmysql.
– Leo Barlach