mattroumaya / surveymonkey

Access your SurveyMonkey data directly from R!
https://mattroumaya.github.io/surveymonkey/
Other
42 stars 10 forks source link

feat: Allow duplicates to be dealt with in parse_survey #98

Closed jamieRowen closed 2 years ago

jamieRowen commented 2 years ago

Looks to address #74 by allowing parse_survey to proceed even if duplicate data are found. The existing solution errors as a result of {assertthat} and has no escape hatch.

This PR adds a parameter to parse_survey, fix_duplicates, which defaults to the same error behaviour as is currently present with an expanded message. But also allows the user to specify that duplicates are kept or dropped as part of the processing of survey responses. In each case if duplicates are found a warning will be presented.

jamieRowen commented 2 years ago

@mattroumaya Changes made as requested