identify_location.Rd
This function infers the most possible home locations for users with built-in recipes. The "recipe" can be either embeded "recipe" - HMLC, OSNA, APDM, FREQ, or self created "recipe".
identify_location(
df,
user = "u_id",
timestamp = "created_at",
location = "loc_id",
tz = "Asia/Singapore",
recipe,
show_n_loc = 1,
keep_score = F
)
A dataframe with columns for the user id, location, timestamp
Name of column that holds unique identifier for each user
Name of timestamp column. Should be POSIXct
Name of column that holds unique identifier for each location
A character string containing the time zone to convert to and it should be recognized in R
Embeded algorithms to identify the most possible home locations for users
Number of potential homes to extract
Option to keep or remove calculated result/score per user per location