| code_freq_by | R Documentation | 
Code frequencies separate by a variable
code_freq_by(x, by, codes = ".*", returnTidyDf = FALSE)
| x | The object with parsed sources. | 
| by | The variables on which to split when computing code frequencies. | 
| codes | A regular expression specifying the codes fo which to compute the code frequencies. | 
| returnTidyDf | When  | 
A data frame with the code frequencies
### Get path to example source
examplePath <-
  system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
  file.path(examplePath, "example-1.rock");
### Load example source
loadedExample <- rock::parse_source(exampleFile);
### Show code frequencies
code_freq_by(loadedExample, "nestingLevel");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.