View source: R/make_user_mapping_w2.R
make_user_mapping_w2 | R Documentation |
The matching is done by
fuzzyjoin::stringdist_left_join
using the Jaro-Winker distance between the ODKC username and the individual
WAStD name
, username
and aliases
of current active WAStD Users.
make_user_mapping_w2( w2_data, wastd_users, verbose = wastdr::get_wastdr_verbose() )
w2_data |
The output of |
wastd_users |
A tibble of WAStD users. |
verbose |
Whether to show debug messages. Default: wastdr::get_wastdr_verbose() |
The field aliases
is where the magic happens.
make_user_mapping_w2
matches against each alias after separating the
aliases by comma.
This way, we can add the exact misspelling of an ODK Collect username as
a new alias, and get a 100% match for it.
A tibble of legacy username and user ID with the respective best match of a WAStD user.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.