
Combine Withings epoch and summary data
Source:R/withings-combine.R
combine_withings_epoch_summary.RdMatches epoch rows to summary rows by id (w_id/sleep_id) and adds a datetime column converted from unix timestamp using the matched timezone.
Arguments
- epochs
tibble/data.frame with columns id or w_id, and timestamp (unix seconds)
- summary
tibble/data.frame from withings_json_to_df() or CSV with w_id/sleep_id and timezone
- id_cols
character vector of candidate id column names (default: c("w_id","sleep_id","id"))
- tz_cols
character vector of candidate timezone columns (default: c("w_timezone","timezone"))