Learn R Programming

rock

Copy Link

Version

Install

install.packages('rock')

Monthly Downloads

141

Version

0.9.6

License

GPL-3

Maintainer

Gjalt-Jorn Ygram Peters

Last Published

June 13th, 2025

Functions in rock (0.9.6)

codebook_to_pdf

Convert a codebook specification to PDF
codebook_fromSpreadsheet

Import a code book specification from a spreadsheet
code_freq_hist

Create a frequency histogram for codes
collapse_occurrences

Collapse the occurrences in utterances into groups
codeIds_to_codePaths

Replace code identifiers with their full paths
syncing_df_compress

Compress a vector or data frame
expand_attributes

Expand categorical attribute variables to a series of dichotomous variables
exportToHTML

Exporting tables to HTML
css

Create HTML fragment with CSS styling
create_cooccurrence_matrix

Create a co-occurrence matrix
export_ROCKproject

Export a ROCK project to a single ROCKproject file
export_codes_to_txt

Export codes to a plain text file
compress_with_sum

Vector compression helper functions
count_occurrences

Count code occurrences
exampleCodebook_1

An very rudimentary example codebook specification
convert_df_to_source

Convert 'rectangular' or spreadsheet-format data to one or more sources
doc_to_txt

Convert a document (.docx, .pdf, .odt, .rtf, or .html) to a plain text file
get_source_filter

Create a filter to select utterances in a source
syncing_df_expand

Expand a vector or data frame
get_childCodeIds

Get the code identifiers a code's descendents
generic_recoding

Generic underlying recoding function
heading

Print a heading
heading_vector

Make a vector of strings into headings
export_to_html

Export parsed sources to HTML or Markdown
code_freq_by

Code frequencies separate by a variable
codePaths_to_namedVector

Get a vector to find the full paths based on the leaf code identifier
export_fullyMergedCodeTrees

Export the fully merged code tree(s)
get_dataframe_from_nested_list

Return all values from a nested list in a dataframe
get_codeIds_from_qna_codings

Get the code identifiers from QNA codings
convertToNumeric

Conveniently convert vectors to numeric
confIntProp

Confidence intervals for proportions, vectorized over all arguments
get_state_transition_dot

Get the Dot code for a state transition graph
mask_source

Masking sources
export_mergedSourceDf_to_csv

Export a merged source data frame
generate_tssid

Generate a TSSID
match_consecutive_delimiters

Match the corresponding indices of (YAML) delimiters in a sequential list
get_state_transition_table

Get the state transition table
padString

Padd a character vector
get_state_transition_df

Get the state transition data frame
collect_coded_fragments

Create an overview of coded fragments
extract_codings_by_coderId

Extract the codings by each coder using the coderId
get_vectors_from_nested_list

Return one or more values from a nested list in a list of vectors
get_utterances_and_codes_from_source

Get utterances and codes from source
extract_uids

Extract the UIDs (or SQUIDs) from a vector
print.rock_graphList

Plot the graphs in a list of graphs
prepend_tssid_to_source

Prepend a line with a TSSID to a source
prepend_ids_to_source

Prepending unique utterance identifiers
generate_uids

Generate utterance identifiers (UIDs)
inspect_coded_sources

Read sources from a directory, parse them, and show coded fragments and code tree
import_source_from_gDocs

Import a source from Google Documents
merge_sources

Merge source files by different coders
opts

Options for the rock package
number_as_xl_date

Convert a number to a date using Excel's system
resultsOverview_allCodedFragments

Show all coded fragments
repeatStr

Repeat a string a number of times
parsed_sources_to_ena_network

Create an ENA network out of one or more parsed sources
recode_move

Move one or more codes to a different parent
recode_split

Split a code into multiple codes
recode_merge

Merge two or more codes
recode_addChildCodes

Add child codes under a parent code
qna_to_tlm

Convert a QNA network to Linear Topic Map format
prettify_source

Prettify a source in HTML
import_ROCKproject

Import a ROCK project from a ROCKproject file
parse_source_by_coderId

Parsing sources separately for each coder
recode_rename

Rename one or more codes
parse_source

Parsing sources
heatmap_basic

Generic convenience function to create a heatmap
make_ROCKproject_config

Make a ROCK project configuration file
load_source

Load a source from a file or a string
add_html_tags

Add HTML tags to a source
quest

Qualitative/Unified Exploration of State Transitions
show_inductive_code_tree

Show the inductive code tree(s)
sync_streams

Synchronize multiple streams
prereg_initialize

Initialize a (pre)registration
preprocess_source

Efficiently preprocess data
rbind_dfs

Simple alternative for rbind.fill or bind_rows
rpe_create_source_with_items

Create a source with items to code for Response Process Evaluation
template_codebook_to_pdf

Convert a codebook specification to PDF
save_workspace

Save your justifications to a file
template_ci_heatmap_1_to_pdf

Create a templated report for cognitive interviews
sync_vector

Sync (expand or compress) a vector
snoe_plot

Soft Non-numeric Occurrence Estimation (SNOE) plot
split_long_lines

Split long lines
stripCodePathRoot

Strip the root from a code path
yaml_delimiter_indices

Get indices of YAML delimiters
rbind_df_list

Bind lots of dataframes together rowwise
root_from_codePaths

Get the roots from a vector with code paths
ci_import_nrm_spec

Import a Narrative Response Model specification
read_spreadsheet

Convenience function to read spreadsheet-like files
show_fullyMergedCodeTrees

Show the fully merged code tree(s)
write_source

Write a source to a file
show_attribute_table

Show a table with all attributes in the RStudio viewer and/or console
wordwrap_source

Wordwrapping a source
wrapVector

Wrap all elements in a vector
rock

rock: A Reproducible Open Coding Kit
recode_delete

Remove one or more codes
form_to_rmd_template

Convert a (pre)registration form to an R Markdown template
vecTxt

Easily parse a vector into a character value
carry_over_values

Taking a vector, carry value over ('persistence')
cat0

Concatenate to screen without spaces
checkPkgs

Check for presence of a package
ci_heatmap

Create a heatmap showing issues with items
ci_get_item

Get an item in a specific language
prepend_ciids_to_source

Prepend lines with one or more class instance identifiers to one or more sources
base30toNumeric

Conversion between base10 and base30
as.rock_source

Specify that something is a source
apply_graph_theme

Apply multiple DiagrammeR global graph attributes
cleaned_source_to_utterance_vector

Convert a character vector into an utterance vector
create_codingScheme

Create a coding scheme
clean_source

Cleaning & editing sources
codingSchemes_get_all

Convenience function to get a list of all available coding schemes
code_source

Add one or more codes to one or more sources