Skip to content

Commit

Permalink
Remove function summarise_trait_means (#125)
Browse files Browse the repository at this point in the history
As described in issue #123 the function is outputting inaccurate results if presented with a database with data from multiple datasets. We are removing it until we build a more sophisticated function.

Closes issue #123
  • Loading branch information
ehwenk authored Nov 15, 2024
1 parent 1ca432f commit 7192f3d
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 134 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export(plot_site_locations)
export(plot_trait_distribution_beeswarm)
export(separate_trait_values)
export(summarise_database)
export(summarise_trait_means)
export(trait_pivot_longer)
export(trait_pivot_wider)
import(RefManageR)
Expand Down
64 changes: 0 additions & 64 deletions R/summarise_trait_values.R

This file was deleted.

2 changes: 1 addition & 1 deletion R/trait_pivot_longer.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @param wide_data output from trait_pivot_wider. For <= v3.0.2 list object containing wide data generated,For > v3.0.2 a tibble of wide data
#' @return A tibble in long format
#' @details
#' - If `bind_trait_values` or `summarise_trait_means` was applied prior to `trait_pivot_wider` for AusTraits
#' - If `bind_trait_values` was applied prior to `trait_pivot_wider` for AusTraits
#' <= v3.0.2, `trait_pivot_longer` will return a tibble with fewer observations than the original traits table.
#' - For AusTraits version >3.0.2, `trait_pivot_longer` will return a tibble with fewer columns than that original traits table
#' - The excluded columns include: "unit", "replicates", "measurement_remarks", "basis_of_record", "basis_of_value"
Expand Down
1 change: 0 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ reference:
- contents:
- starts_with("extract")
- starts_with("trait_pivot")
- summarise_trait_means
- starts_with("join")
- ends_with("trait_values")
- as_wide_table
Expand Down
23 changes: 0 additions & 23 deletions man/summarise_trait_means.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/trait_pivot_longer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions tests/testthat/test-summarise_trait_means.R

This file was deleted.

9 changes: 0 additions & 9 deletions vignettes/austraits.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,4 @@ data_wide_bound %>%
separate_trait_values(., austraits$definitions)
```

#### `summarise_trait_means`

```{r, pivot_summarised}
data_wide_summarised <- data_falster_studies$traits %>%
summarise_trait_means() %>%
trait_pivot_wider()

data_wide_summarised$value %>% head()
```

0 comments on commit 7192f3d

Please sign in to comment.