Skip to contents

All functions

add.stats.corpus.list()
add network-metrics to nodelist & summarise a corpus.list
add_doc_network_to_corpus()
Compute a Citations Network of functions form a corpus_list dataframe
add_functions_list_to_corpus()
Compute a function list from the codes df of a corpus.list object
censor_quoted_text()
Censor or erase quoted substrings in a text
compute_nchar_metrics()
Get lines text-metrics from a df
construct_corpus()
Construct a list of Data Frames of Lines Readed From Files Within a Local GitHub Repositories and/or Local Folders
.construct.corpus.lines()
Construct a corpus.lines dataframe
.construct.corpus.list()
Create a corpus.list from a list or append a dataframe to a corpus.list
.construct.nodelist()
Construct a corpus.nodelist dataframe
explor_project()
Turn a programing project into a Corpus and get message about files and functions
extract_delimited_fn_code()
Extract code for each functions of the functions df of a corpus.list within bracket Here we need a corpus$functions object with columns for begining and end position (hardcoded colnames)
extract_fn_params()
Extract parameters for each functions of the functions df of a corpus.list
extract_indented_fn_code()
Extract parameters and code for each functions of the functions df of a corpus.list
filter_igraph_egonetwork()
Extract an ego-subgraph based on a regex pattern
fix_escaping()
Escape the special characters in a string
gather_df_lines()
Concatenate text by a common key
get_citations_network_from_df()
Construct a Citations Network from Data Frame
get_def_regex_by_language()
Retrieve function definition regex patterns by programming language(s)
get_github_raw_filespath()
Get GitHub File URLs Matching a Pattern
get_igraph_from_df()
Convert an edge list into an igraph network
get_networkd3_from_igraph()
Convert an igraph object to a networkD3 visualization
get_regex_from_vector()
Generate Regular Expression from a Character Vector
move_networkd3_legend()
Move the responsive legend of a networkD3 plot and set vertical or horizontal orientation
print(<corpus.lines>)
Print Method for corpus.lines
readlines_in_df()
Read text file with readLines and answer a df
separate_commented_lines()
Separate commented and non-commented lines from text
srch_pattern_in_df()
Try to match a text pattern in a df column by only extract the text
str_extract_all_to_tidy_df()
Extract regex matches from a string and return a tidy dataframe