Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wcornwell committed Aug 13, 2024
1 parent c4fa44d commit 4ea4068
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 11 deletions.
28 changes: 23 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ the established status (native/introduced) of plant taxa across different states

## Installation

```{r install, eval= FALSE}
From CRAN:

```{r install, eval= FALSE}
install.packages("APCalign")
# OR for the github version
```

OR for the github version:

```{r install2, eval= FALSE}
install.packages("remotes")
remotes::install_github("traitecoevo/APCalign")
```

## A quick demo
Expand Down Expand Up @@ -83,6 +85,22 @@ Checking for a list of species to see if they are classified as Australian nativ
native_anywhere_in_australia(c("Eucalyptus globulus","Pinus radiata"), resources = tax_resources)
```

Getting a family lookup table for genera from the specified taxonomy:

```{r, message=FALSE}
get_apc_genus_family_lookup(c("Eucalyptus",
"Pinus",
"Actinotus",
"Banksia",
"Acacia",
"Triodia"),
resources = tax_resources)
```


## Shiny application

We also developed a shiny application for non-R users to update and align their taxonomic names. You can find the application here: https://unsw.shinyapps.io/APCalign-app
Expand Down
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ of established status (native/introduced).

## Installation

``` r
From CRAN:

``` r
install.packages("APCalign")
```

# OR for the github version
OR for the github version:

``` r
install.packages("remotes")
remotes::install_github("traitecoevo/APCalign")

```

## A quick demo
Expand Down Expand Up @@ -68,9 +70,6 @@ load the taxonomic resources into memory first:

tax_resources <- load_taxonomic_resources()
#> ================================================================================================================================================================
```

``` r

create_taxonomic_update_lookup(
taxa = c(
Expand Down Expand Up @@ -106,6 +105,28 @@ native_anywhere_in_australia(c("Eucalyptus globulus","Pinus radiata"), resources
#> 2 Pinus radiata introduced
```

Getting a family lookup table for genera from the specified taxonomy:

``` r

get_apc_genus_family_lookup(c("Eucalyptus",
"Pinus",
"Actinotus",
"Banksia",
"Acacia",
"Triodia"),
resources = tax_resources)
#> # A tibble: 6 × 2
#> genus family
#> <chr> <chr>
#> 1 Eucalyptus Myrtaceae
#> 2 Pinus Pinaceae
#> 3 Actinotus Apiaceae
#> 4 Banksia Proteaceae
#> 5 Acacia Fabaceae
#> 6 Triodia Poaceae
```

## Shiny application

We also developed a shiny application for non-R users to update and
Expand Down

0 comments on commit 4ea4068

Please sign in to comment.