get_nrows {mpathsenser} | R Documentation |
Get the number of rows per sensor in a mpathsenser database
Description
Usage
get_nrows(
db,
sensor = "All",
participant_id = NULL,
start_date = NULL,
end_date = NULL
)
Arguments
db |
db A database connection, as created by |
sensor |
A character vector of one or multiple vectors. Use |
participant_id |
A character string identifying a single participant. Use
|
start_date |
Optional search window specifying date where to begin search. Must be
convertible to date using |
end_date |
Optional search window specifying date where to end search. Must be convertible
to date using |
Value
A named vector containing the number of rows for each sensor.
Examples
## Not run:
# Open a database connection
db <- open_db("path/to/db")
# Get the number of rows for all sensors
get_nrows(db, sensor = NULL)
# Get the number of rows for the Accelerometer and Gyroscope sensors
get_nrows(db, c("Accelerometer", "Gyroscope"))
# Remember to close the connection
close_db(db)
## End(Not run)