| | source("requirements.R") |
| |
|
| | if (!dir.exists("./grambank-analysed/R_grambank/output")) { |
| | dir.create("./grambank-analysed/R_grambank/output") |
| | } |
| |
|
| | |
| |
|
| | setwd("grambank-analysed/R_grambank") |
| |
|
| | if (!(file.exists("./../../data/GB_wide/GB_wide_strict.tsv"))) { |
| | cat("Generating GB_wide_strict.\n") |
| | |
| | source("make_wide.R") |
| | |
| | read_tsv("output/GB_wide/GB_wide_strict.tsv", show_col_types = F) %>% |
| | write_tsv(file = "../../data/GB_wide/GB_wide_strict.tsv") |
| |
|
| | } |
| |
|
| | |
| |
|
| | if (!(file.exists("../../../data_wrangling/glottolog_cldf_wide_df.tsv"))) { |
| | cat("Generating glottolog table.\n") |
| | |
| | source("make_glottolog-cldf_table.R") |
| | |
| | read_tsv("output/non_GB_datasets/glottolog-cldf_wide_df.tsv", |
| | show_col_types = F) %>% |
| | write_tsv(file = "./../../data_wrangling/glottolog_cldf_wide_df.tsv") |
| | } |
| |
|
| | if (!(file.exists("./../data/GB_wide/parameters.csv"))) { |
| | cat("Generating parameters table.\n") |
| | |
| | read_csv("../grambank/cldf/parameters.csv", show_col_types = F) %>% |
| | dplyr::select(ID, Name, Description, boundness = Boundness, informativity = Informativity) %>% |
| | write_csv(file = "../../data/GB_wide/parameters.csv") |
| | } |
| |
|
| |
|
| | setwd("../../") |
| |
|