Script Use of Lexicometry in Sensometrics

4.2.2. Building Multiple tables

French panel

The French multiple table has the same eight row-documents (wines) and 262 column-global words.

TMulFr15 <- do.call(cbind, lapply(lapply(1:length(res.TD.Fr.list), function(i) as.matrix(res.TD.Fr.list[[i]]$DocTerm)), unlist))

 

We can see the 262 column-global words

cat(t(colnames(TMulFr15)))

Some of them are used by different French judges:

res.w <- data.frame(table(colnames(TMulFr15)))
res.w <- res.w[res.w$Freq>1,]
res.w[order(res.w$Freq, decreasing=TRUE),]

 

We will number each repeated word to build the Multiple Table for the 15 French judges:

TMulFr15 <- data.frame(TMulFr15, check.names=TRUE)
res.w2 <- (t(colnames(TMulFr15)))
cat(sort(res.w2))

 

To build the Multiple table for the 15 French judges from the res.Fr.List only need run the following (262 words):

TMulFr15 <- do.call(cbind, lapply(lapply(1:length(res.TD.Fr.list), function(i) as.matrix(res.TD.Fr.list[[i]]$DocTerm)),unlist))
TMulFr15 <- data.frame(TMulFr15, check.names=TRUE)
cat(dim(TMulFr15))

To do the same for the 9 Catalan judges (131 words):

TMulCat9 <- do.call(cbind, lapply(lapply(1:length(res.TD.Cat.list), function(i) as.matrix(res.TD.Cat.list[[i]]$DocTerm)), unlist))
TMulCat9 <- data.frame(TMulCat9, check.names=TRUE)
cat(dim(TMulCat9))

To row join the two data frames (262+131=393 words):

TMul24 <- cbind(TMulFr15, TMulCat9)
cat(dim(TMul24))

Catalan panel

To do the same for the 9 Catalan judges (131 words):

TMulCat9 <- do.call(cbind, lapply(lapply(1:length(res.TD.Cat.list), function(i) as.matrix(res.TD.Cat.list[[i]]$DocTerm)), unlist))
TMulCat9 <- data.frame(TMulCat9, check.names=TRUE)
cat(dim(TMulCat9))

To row join the two data frames (262+131=393 words):

TMul24 <- cbind(TMulFr15, TMulCat9)
cat(dim(TMul24))