ASR_list_2_df: ARS_list_2_df converts a list of Ancestral State...

View source: R/ARS_list_2_df.R

ASR_list_2_dfR Documentation

ARS_list_2_df converts a list of Ancestral State Reconstructions (such as the output from RASP) to a dataframe This is used internally in the to be used with the ASR visualizer function

Description

ARS_list_2_df converts a list of Ancestral State Reconstructions (such as the output from RASP) to a dataframe This is used internally in the to be used with the ASR visualizer function

Usage

ASR_list_2_df(list, ML = FALSE)

Arguments

list

a list of dataframes where each dataframe contains the states and the frequency for each node. Each element in the list should be named with the node name (e.g. node1, node2, node3) state column which has the states as alphabetical characters and no spaces (e.g. A, BC, ADBG) , and a freq column that states the probability of each state

ML

a TRUE/FALSE stateing if you want to include a column for most likely state for each node. FALSE by default


dilljone/EvoGEAR documentation built on May 7, 2023, 5:12 a.m.