Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/queryActigraph.R
This function executes a SELECT query on an ActiGraph AGD file.
1 | queryActigraph(datfile, qry)
|
datfile |
An AGD file. |
qry |
An SQL SELECT statement. |
AGD files are actually SQLite databases. This function requires the RSQLite package. The user is encouraged to directly interface with the database by creating a connection with the DBI package. This has been tested with AGD files produced with ActiLife v6.11.
A data frame with query results.
Cole Beck cole.beck@vumc.org
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
dat <- queryActigraph("actfile.agd", "SELECT * FROM data LIMIT 5")
queryActigraph("actfile.agd", "SELECT * FROM settings")
## directly interface using DBI package
con <- DBI::dbConnect(RSQLite::SQLite(), "actfile.agd")
DBI::dbListTables(con)
DBI::dbDisconnect(con)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.