Create new variables from existing timestamp, which are often used/needed as intermediate variables in home location algorithms.

enrich_timestamp(df, timestamp = "created_at", tz = "Asia/Singapore")

Arguments

df

A nested dataframe

timestamp

Name of column that holds specific timestamp for each data point and it should be POSIXct

tz

A character string containing the time zone to convert to and it should be recognized in R.