phrase_net.Rd
Create phrase network.
phrase_net( data, connectors = c("to", "in", "at", "and", "of"), keep_connector = FALSE, ... )
data | A data.frame or tibble containig |
---|---|
connectors | Words that establish connections between words and ultimately form edges. |
keep_connector | Whether to include the connecting terms
( |
... | Arguments to pass to method, namely |
data(reuters) net1 <- phrase_net(reuters, text = text) net2 <- phrase_net(reuters$text) identical(net1, net2)#> [1] TRUE