[Stable]

filter_dead(data)

Arguments

data

A dataframe with column indicating "health", e.g. wastd_data$animals with column health or odkc_data$mwi with column health_status.

Value

The dataframe with rows matching mortal outcomes.

See also

Other wastd: add_nest_labels(), disturbance_by_season(), filter_alive(), filter_disturbance(), filter_predation(), ggplot_disturbance_by_season(), ggplot_emergence_success(), ggplot_hatching_success(), ggplot_hatchling_misorientation(), ggplot_nesting_success_per_area_season_species_pct(), ggplot_nesting_success_per_area_season_species(), ggplot_sighting_status_per_area_season_species(), ggplot_total_emergences_per_area_season_species(), ggplot_track_success_by_date(), ggplot_track_successrate_by_date(), hatching_emergence_success_area(), hatching_emergence_success_site(), hatching_emergence_success(), map_dist(), map_fanangles(), map_mwi(), map_nests(), map_tracks(), map_wastd_wamtram_sites(), map_wastd(), nesting_success_per_area_day_species(), nesting_success_per_area_season_species(), nesting_type_by_area_season_age_species(), nesting_type_by_area_season_species(), nesting_type_by_season_age_species(), nesting_type_by_season_calendarday_age_species(), nesting_type_by_season_calendarday_species(), nesting_type_by_season_day_species(), nesting_type_by_season_species(), nesting_type_by_season_week_age_species(), nesting_type_by_season_week_site_species(), nesting_type_by_season_week_species(), nesting_type_by_site_season_age_species(), nesting_type_by_site_season_species(), parse_animal_encounters(), parse_area_sf(), parse_area(), parse_encounterobservations(), parse_surveys(), parse_turtle_nest_encounters(), print.wastd_api_response(), sighting_status_per_area_season_species(), sighting_status_per_site_season_species(), summarise_hatching_and_emergence_success(), summarise_wastd_data_per_day_site(), total_emergences_per_area_season_species(), total_emergences_per_site_season_species(), track_success_by_species(), track_success(), tracks_ts()

Examples

data("wastd_data")
wastd_data$animals %>%
  filter_dead() %>%
  head()
#> # A tibble: 6 × 77
#>       id type  source sourc…¹ encou…² status when  latit…³ longi…⁴ crs   locat…⁵
#>    <int> <chr> <chr>  <chr>   <chr>   <chr>  <chr>   <dbl>   <dbl> <chr> <chr>  
#> 1 417054 Feat… odk    uuid:0… strand… new    2022…   -20.9    115. WGS … 10     
#> 2 416954 Feat… direct 2022-0… strand… new    2022…   -34.9    118. WGS … 1000   
#> 3 416395 Feat… odk    uuid:1… strand… new    2022…   -21.8    114. WGS … 10     
#> 4 416951 Feat… direct 2022-0… strand… new    2022…   -17.9    122. WGS … 1000   
#> 5 416955 Feat… direct 2022-0… strand… new    2022…   -17.9    122. WGS … 1000   
#> 6 410177 Feat… odk    uuid:d… strand… new    2022…   -21.9    114. WGS … 10     
#> # … with 66 more variables: location_accuracy_m <int>, name <chr>,
#> #   leaflet_title <chr>, observer_pk <chr>, observer_username <chr>,
#> #   observer_name <chr>, reporter_pk <chr>, reporter_username <chr>,
#> #   reporter_name <chr>, comments <chr>, area_pk <int>, area_area_type <chr>,
#> #   area_name <chr>, site_pk <int>, site_area_type <chr>, site_name <chr>,
#> #   survey_id <int>, survey_area_pk <int>, survey_area_area_type <chr>,
#> #   survey_area_name <chr>, survey_site_pk <int>, …

data("odkc_data")
odkc_data$mwi %>%
  sf_as_tbl() %>%
  filter_dead() %>%
  head()
#> # A tibble: 6 × 82
#>   id    meta_…¹ start…² start…³ start…⁴ start…⁵ start_geop…⁶ observation_start…⁷
#>   <chr> <chr>     <dbl>   <dbl>   <dbl>   <dbl> <list>       <dttm>             
#> 1 uuid… uuid:e…     NA     NA     NA      NA    <NULL>       2022-06-19 15:01:47
#> 2 uuid… uuid:0…    115.   -20.9   -5       4.81 <named list> 2022-03-20 08:03:09
#> 3 uuid… uuid:1…    114.   -21.8  -17.6     5.36 <named list> 2022-02-12 07:23:37
#> 4 uuid… uuid:d…    114.   -21.9  -13.4     7.15 <named list> 2022-01-31 11:10:37
#> 5 uuid… uuid:9…    114.   -21.8  -15.5     3.22 <named list> 2022-01-30 07:40:47
#> 6 uuid… uuid:8…    114.   -21.8   -3.95    3.22 <named list> 2022-01-29 07:50:31
#> # … with 74 more variables: device_id <chr>, reporter <chr>,
#> #   incident_reporter_repeat <chr>, incident_observed_at_longitude <dbl>,
#> #   incident_observed_at_latitude <dbl>, incident_observed_at_altitude <dbl>,
#> #   incident_observed_at_accuracy <dbl>, incident_observed_at <list>,
#> #   incident_observed_at_manual_longitude <dbl>,
#> #   incident_observed_at_manual_latitude <dbl>,
#> #   incident_observed_at_manual_altitude <dbl>, …