Import .db file into R -
I am trying to import the .db file using the code given below, which is similar to the example with the package And it says that the function can not be found. Any ideas on how to import any .db file?
Library (project template) db.reader ('c3.db', '/ users / xxx / documents / c3.db', 'data') & gt; db.reader ('c3.db', '/ user / xxx / desktop /', 'data') Error: The function "db.reader" could not be found
I have not installed / installed this package, although it seems that this function is not exported and after that the user is not available. Generated by: Roxanne 2 (4.0.0): NAMESPACE file from: Exporting handheld (cache) export (cache. Project) export (edit project (export) (Export) (Export) (Export) export (translate.dcf) After all, example
## has not run: db.reader ('example.db', 'data function, though
db.reader <- function (data.file, filename, variable) .name) {require.package ('RSQLite') sqlite.driver & lt; - dbDriver ("SQLite") connection & lt; - dbConnect (sqlite.driver, dbname = filename) tables & lt; - dbListTables For t In the label) Specify the data. Parcel & lt; - dbReadTable (Connection, Table, Line.Name = NULL) (clean.variable.name (table), data) (data ('Loading table:', table) parcel, envir = .TargetEnv)} disconnect.success <- dbDisconn Ect (connection) if (! disconnect.success) (Warning (Paste ('Unable to disconnect from database', file name))} You can try using directly (from workplace), but is the best approach (IMHO) < Ul> Finally ask for maintenance The area (why can not participate in the present? NAMESPACE generation, I think db.reader may be placeholder at this time) or if you only You can program your own RSqualite-based functions (such as a template) that you use for package DB. Import the file.
Comments
Post a Comment