Count code occurrences
Value
A data.frame()
.
Examples
### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
file.path(examplePath, "example-3.rock");
### Load example source
loadedExample <- rock::parse_source(exampleFile);
### Show code occurrences
rock::count_occurrences(
loadedExample
);
#> codeId count totalCodedUtterances totalUtterances
#> exampleCodeId_1 exampleCodeId_1 9 20 102
#> exampleCodeId_2 exampleCodeId_2 7 20 102
#> exampleCodeId_3 exampleCodeId_3 5 20 102
#> exampleCodeId_4 exampleCodeId_4 2 20 102