Extract the most likely home location for each user based on choosed column value

extract_location(
  df,
  user = "u_id",
  location = "loc_id",
  show_n_loc = 1,
  keep_score = F,
  ...
)

Arguments

df

A nested dataframe by user

user

Name of column that holds unique identifier for each user

location

Name of column that holds unique identifier for each location

show_n_loc

Number of homes to be shown

keep_score

Choice to keep score or not

score_var

Name of column that holds weighted score for each user