This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Version: 2022/12/07 - 10:51 | |
import pandas as pd | |
import os | |
import sys | |
# Return all files in the given directory as a list | |
dir = "./tables" | |
files: list[str] = [] | |
for file in os.listdir(dir): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## If a package is installed, it will be loaded. If any | |
## are not, the missing package(s) will be installed | |
## from CRAN and then loaded. | |
## First specify the packages of interest | |
packages = c("tidyverse", "geomorph", | |
"phytools", "viridis") | |
## Now load or install & load all | |
package.check <- lapply( |