Skip to content

Commit

Permalink
v0.1rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericBlum committed Dec 20, 2023
1 parent 6d4c363 commit 8ad1e78
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/07_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ data <- read_tsv('data.tsv') %>%
lang_vec <- unique(data$Language)
languages <- read_csv('../doreco/cldf/languages.csv')

# Speaker Table has 396 entries, but only 393 contribute data
speakers <- read_csv('../doreco/cldf/speakers.csv')
data %>% group_by(Speaker) %>% summarise(n=n())

###################################
### Preprocessing numbers ###
###################################
count_speaker <- data %>% group_by(Glottocode) %>%
spk <- tibble(ID = unique(data$Speaker))
speaker_sex <- speakers %>%
inner_join(spk) %>% group_by(sex) %>%
summarise("Sex"=n())

count_speaker <- data %>% # group_by(Glottocode) %>%
summarise("Speakers"=n_distinct(Speaker))

count_ipu <- data %>% group_by(Glottocode) %>%
Expand Down

0 comments on commit 8ad1e78

Please sign in to comment.