Skip to content

Conversation

@jdtrat
Copy link
Collaborator

@jdtrat jdtrat commented Aug 20, 2021

This PR adds utility functions for discord-specific conditions, fixes #6, and updates documentation and NEWS.md.

jdtrat added 3 commits August 20, 2021 11:06
Code adapted from [Advanced R](https://adv-r.hadley.nz/conditions.html#signalling), allows custom classes with errors, warnings, and messages that may be useful for future features.
Specifically, this commit:

* Adds an internal function for checking whether id columns are supplied and/or valid. If no column name is supplied, row-wise ids are added quietly. If a column name is supplied but does not contain unique values for each kin-pair, a warning message states the problem and the row-wise ids will be used.
* Updates `check_discord_errors()` with new id default and enhances unit-tests for this.
* Updated documentation on for `discord_data()` and `discord_regression()`.
@jdtrat jdtrat requested a review from smasongarrison August 20, 2021 15:18
made the pair identifiers for race and sex use the pair_identifiers info
should fix the demographic issue caused by pair identifiers
Copy link
Member

@smasongarrison smasongarrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything looks good (now that I've fixed what I broke with my "fixes"

@smasongarrison smasongarrison self-assigned this Aug 25, 2021
@smasongarrison
Copy link
Member

nice job

@smasongarrison smasongarrison merged commit b8eb5b7 into main Aug 25, 2021
@smasongarrison smasongarrison linked an issue Aug 31, 2021 that may be closed by this pull request
@smasongarrison smasongarrison deleted the add-checks branch March 30, 2022 21:55
@smasongarrison smasongarrison restored the add-checks branch September 13, 2023 14:11
@smasongarrison smasongarrison deleted the add-checks branch September 13, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

discord_data() function Output of discord_data() may return multiple rows per kin-pair if 'id' column has non-unique values

3 participants