Converts the Island_tbl
class to a data frame in the format of a DAISIE data table (see DAISIE R package for details). This can then be input into DAISIEprep::create_daisie_data()
function which creates the list input into the DAISIE ML models.
Source: R/as_daisie_datatable.R
as_daisie_datatable.Rd
Converts the Island_tbl
class to a data frame in the format of a DAISIE
data table (see DAISIE R package for details). This can then be input into
DAISIEprep::create_daisie_data()
function which creates the list input into
the DAISIE ML models.
Examples
phylod <- create_test_phylod(10)
island_tbl <- extract_island_species(
phylod = phylod,
extraction_method = "asr"
)
#> Warning: Root of the phylogeny is on the island so the colonisation
#> time from the stem age cannot be collected, colonisation time
#> will be set to infinite.
# Example where precise colonisation times are known
daisie_datatable <- as_daisie_datatable(
island_tbl = island_tbl,
island_age = 0.2,
precise_col_time = TRUE
)
# Example where colonisation times are uncertain and set to max ages
daisie_datatable <- as_daisie_datatable(
island_tbl = island_tbl,
island_age = 0.2,
precise_col_time = FALSE
)