rmd_to_token_count: Count tokens in R/Rmd

Description Usage Arguments Value

View source: R/nlp_related.R

Description

Count the individual tokens. Part of the NLP analysis process.

Usage

1
rmd_to_token_count(fname, include_actuals = TRUE)

Arguments

fname

The Rmd or R file name.

include_actuals

Whether actual arguments/literals should be included. If this is FALSE, then only calls and formal arguments will be used in the count.

Value

A tibble. The tibble will contain a the frequency count for all tokens present in the student script.


autoharp documentation built on Nov. 13, 2021, 1:06 a.m.