ncbirdconservation / NCBA

A collaborative repository of code for the North Carolina Bird Atlas.
6 stars 2 forks source link

Handling Shared Checklists #8

Open nmtarr opened 2 years ago

nmtarr commented 2 years ago

We need a function to handle duplicate records that exist because of shared checklists.

nmtarr commented 2 years ago

The auk R package has a function that may work for this, which is used within read_ebd().

The function handles group checklists duplication on a per-species basis and picks the first checklist in sort of an ID column. It is unclear whether the count of individuals is incorporated because of unclear comments. The function also compiles codes from group_identifier and/or sampling_event_identifier into a new column called "checklist_id".

@jpccarpenter @skaclmbr @craggy-analytics

craggy-analytics commented 2 years ago

Thank you, Nathan.

Scott Pearson

On Tue, Mar 1, 2022, 9:45 AM Nathan Tarr @.***> wrote:

The auk R package has a function that may work for this https://github.com/CornellLabofOrnithology/auk/blob/main/R/auk-unique.r, which is used within read_ebd().

The function handles group checklists duplication on a per-species basis and picks the first checklist in sort of an ID column. It is unclear whether the count of individuals is incorporated because of unclear comments. The function also compiles codes from group_identifier and/or sampling_event_identifier into a new column called "checklist_id".

@jpccarpenter https://github.com/jpccarpenter @skaclmbr https://github.com/skaclmbr @craggy-analytics https://github.com/craggy-analytics

— Reply to this email directly, view it on GitHub https://github.com/nmtarr/NCBA/issues/8#issuecomment-1055520057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAXJCWFCI4KAEHV5NU7KVTU5YUP7ANCNFSM5NGSPATQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

nmtarr commented 2 years ago

Once someone confirms that use of this function suffices, then we can move this issue to complete.