View source: R/extract_location.R
extract_location | R Documentation |
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,
...
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.