getTask {wizaRdry} | R Documentation |
Alias for 'mongo'
Description
This is a legacy alias for the 'mongo' function to maintain compatibility with older code.
Usage
getTask(
collection_name,
...,
db_name = NULL,
identifier = NULL,
chunk_size = NULL,
verbose = FALSE,
interview_date = NULL
)
Arguments
collection_name |
The name of the MongoDB collection |
... |
Optional column names to filter for. Only rows with non-missing values in ALL specified columns will be returned. This is useful for filtering data to only include complete cases for specific variables of interest. |
db_name |
The database name (optional) |
identifier |
Field to use as identifier (optional) |
chunk_size |
Number of records per chunk (optional) |
verbose |
Logical; if TRUE, displays detailed progress messages. Default is FALSE. |
interview_date |
Optional; can be either: - A date string in various formats (ISO, US, etc.) to filter data up to that date - A boolean TRUE to return only rows with non-NA interview_date values |
Value
A data frame containing the MongoDB data with superkeys first
Examples
## Not run:
survey_data <- getTask("task_alias")
## End(Not run)