Skip to content

Error when attempting to build phylomatic tree #18

@jwiggi18

Description

@jwiggi18

Code:
library(rphylotastic)
library(datelife)
#to pull the scientifc names from the list of state symbols in my .txt file

WV_symbols <- file_get_scientific_names(file_name = "state_symbols/West_Virginia.txt")

WV_phy1 <- taxa_get_otol_tree(taxa = WV_symbols)

WV_phy2 <- taxa_get_phylomatic_tree(taxa = WV_symbols)

Using this file:
West_Virginia.txt

Results in:
status rank division scientificname commonname uid genus species subsp modificationdate
1 active subgenus butterflies Danaus 151542 2001/02/08 00:00
2 active genus butterflies Danaus 13036 2004/09/08 00:00
1:
Error in if (all(phy$node.label == "")) phy$node.label <- NULL :
missing value where TRUE/FALSE needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions