-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunction_logic
28 lines (19 loc) · 874 Bytes
/
function_logic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
I need a function for each possible output.
It seems good practice to use the googlesheets pacakge naming system
bt_read.log
bt_read.schedule
bt_read.stones
etc.
To avoid name clashes.
All output should be dataframes.
Ideally this could feed into a general read.bayestraits function, with an argument for which type to use.
I need to identify how the output files differ based on the model run. But I think they are pretty generic.
Particulary in the case of continuous models.
Added bonus:
Make an attributes function which takes the top settings from the header of each file and adds them
as attributes to the data frame output
Writing Bayestraits files would also be a useful function that I already have
bt_write.bayestraits
With data object, tree object inputs
Also taxa column & value column, chaning NAs etc.
I have mostly done this I think.