Learn R Programming

RCLabels

Statement of need

When analyzing lists of matrices (whether actual lists or matrix columns in a matsindf data frame), it can be challenging to operate on matrix row and column names. This package provides functions to assist with manipulating matrix row and column labels for those situations. Example applications include economic and energy conversion chain analyses using input-output (IO) analysis or physical supply-use table (PSUT) analysis.

Installation

You can install RCLabels from CRAN with:

install.packages("RCLabels")

You can install the development version of RCLabels from GitHub with:

# install.packages("devtools")
devtools::install_github("MatthewHeun/RCLabels")

More Information

Find more information, including vignettes and function documentation, at https://MatthewHeun.github.io/RCLabels/.

Copy Link

Version

Install

install.packages('RCLabels')

Monthly Downloads

304

Version

0.1.11

License

MIT + file LICENSE

Maintainer

Matthew Heun

Last Published

January 13th, 2025

Functions in RCLabels (0.1.11)

in_notation

In notation
get_prepositions

Extract prepositions from row and column labels
%>%

Pipe operator
prepositions_list

Prepositions
modify_nouns

Modify nouns in labels
make_list

Make a list of items in x, regardless of x's type
strip_label_part

A convenience function to help splitting prefixes and suffixes
notations_list

Notations list
split_noun_pp

Split row and column labels into nouns and prepositional phrases
modify_label_pieces

Modify pieces of row and column labels
regex_funcs

Find or replace row or column labels that match a regular expression
of_notation

Of notation
prepositions

Prepositions
make_or_pattern

Create "or" regex patterns
to_notation

To notation
remove_label_pieces

Remove a prepositional phrase in a row or column label
paren_notation

Parenthetical notation
paste_noun_pp

Recombine row and column labels
row-col-notation

Row and column notation
first_dot_notation

First dot notation
get_objects

Extract objects of prepositional phrases in row and column labels
get_nouns

Extract nouns from row and column labels
get_pps

Extract prepositional phrases of row and column labels
get_piece

Get a piece of a label
infer_notation_for_one_label

Infer the notation from one row or column label
infer_notation

Infer the notation(s) for a row or column label
bracket_notation

Bracket notation
arrow_notation

Arrow notation
from_notation

From notation
dash_notation

A description of dash notation.
bracket_arrow_notation

Bracket arrow notation