jpinfect_merge | R Documentation |
This function merges multiple datasets ('dataset1', 'dataset2', and optionally 'dataset3') based on shared columns: 'prefecture', 'year', and 'week'. It also renames column names according to the dataset type ('sex', 'place', or 'bullet').
jpinfect_merge(
dataset1 = sex_prefecture,
dataset2 = place_prefecture,
dataset3 = NULL
)
dataset1 |
A data frame containing "sex" data to be merged. |
dataset2 |
A data frame containing "place" data to be merged. |
dataset3 |
(Optional) A third dataset containing "bullet" data to be added. |
A data frame that combines all input datasets and applies consistent column renaming.
# Example usage
bind_result <- jpinfect_merge(sex_prefecture, place_prefecture, bullet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.