get_community_data()
get_community_data | R Documentation |
Get Community Data
Description
This function processes a data frame containing community data and extracts the relevant columns, unnesting the ‘data_community’ column in the process.
Usage
get_community_data(data = NULL)
Arguments
data
|
A data frame. Must contain the columns ‘dataset_name’ and ‘data_community’. |
Details
The function performs the following steps:
-
Validates that the input is a data frame.
-
Ensures the presence of the ‘dataset_name’ and ‘data_community’ columns.
-
Selects the ‘dataset_name’ and ‘data_community’ columns.
-
Unnests the ‘data_community’ column.
Value
A data frame with the ‘dataset_name’ and unnested ‘data_community’ columns.