is_dataset {madshapR} | R Documentation |
Test if an object is a valid dataset
Description
Tests if the input object is a valid dataset. This function mainly helps validate input within other functions of the package but could be used to check if a dataset is valid.
Usage
is_dataset(object)
Arguments
object |
A potential dataset to be evaluated. |
Details
A dataset is a data table containing variables. A dataset object is a data frame and can be associated with a data dictionary. If no data dictionary is provided with a dataset, a minimum workable data dictionary will be generated as needed within relevant functions. Identifier variable(s) for indexing can be specified by the user. The id values must be non-missing and will be used in functions that require it. If no identifier variable is specified, indexing is handled automatically by the function.
Value
A logical.
See Also
For a better assessment, please use dataset_evaluate()
.
Examples
{
# use madshapR_DEMO provided by the package
# any data frame can be a dataset by definition.
is_dataset(madshapR_DEMO$dataset_MELBOURNE)
is_dataset(iris)
is_dataset(AirPassengers)
}