Last chance! 50% off unlimited learning
Sale ends in
prop(mat, digits = 2, percent = FALSE, by.column = TRUE,
round = FALSE)
TRUE
output given as
percent. If FALSE
the output is proportion.TRUE
applies to the
column. If FALSE
applies by row.TRUE
rounds the returned
values (controlled by digits).y <- wfdf(DATA$state, DATA$person, stopwords = c("your", "yours"),
margins = TRUE)
prop(wfm(wfdf = y), 4)[1:10, ] #as a proportion
prop(wfm(wfdf = y), 4, TRUE)[1:10, ] #as a percentage
heatmap(prop(wfm(wfdf = y), 4))
wdstraj <- word_stats(rajSPLIT$dialogue, rajSPLIT$person)
prop(wdstraj$gts[, -1], 5)[1:15, 1:6]
Run the code above in your browser using DataLab