fetch_user_info: Fetch user info

Description Usage Arguments Details Value See Also

Description

Gets responses to custom questions asked during Moodle account creation.

Usage

1
fetch_user_info(user_ids, ..., con = get_session_con())

Arguments

user_ids

A vector of integers corresponding to userids.

...

Potential future args.

con

A database connection object, using the session connection by default.

Details

User info fields can have different response formats. Currently, text, menu, and multiselect are supported.

Responses to multi-select fields are reported in two ways. A column named after the field has a single string for each response. The string contains all selected values. Each possible option is also given its own column that has logical values indicating whether the option was selected.

Empty string values indicate no response and are changed to the R missing value indicator NA. Do not be confused by response values that appear similar, such as the text "NA" or "N/A". Non-empty strings indicate the user selected or entered that value. Inputting a value of "NA" is different from not responding at all, which would be coded NA.

At the Friday Institute, some user info fields collect data that could be used to uncover a user's identity. This function is hard coded to only return approved "safe" fields from which it would be difficult to uncover a user's identity. If a new safe field is added on a future date, it needs to be added to the hard coded list in this package before this function will return it.

Value

A wide-format tibble with user info, where each row corresponds to a value of user_ids.

See Also

fetch_user_details


TheFridayInstitute/fimoodler documentation built on May 28, 2019, 9:37 a.m.