Learn R Programming

⚠️There's a newer version (0.1.11) of this package.Take me there.

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.10

License

MIT + file LICENSE

Maintainer

Matthew Heun

Last Published

January 30th, 2024

Functions in RCLabels (0.1.10)

first_dot_notation

First dot notation
bracket_notation

Bracket notation
dash_notation

A description of dash notation.
get_objects

Extract objects of prepositional phrases in row and column labels
get_piece

Get a piece of a label
make_list

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

Create "or" regex patterns
get_pps

Extract prepositional phrases of row and column labels
modify_label_pieces

Modify pieces of row and column labels
bracket_arrow_notation

Bracket arrow notation
%>%

Pipe operator
from_notation

From notation
prepositions

Prepositions
infer_notation

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

Split row and column labels into nouns and prepositional phrases
modify_nouns

Modify nouns in labels
infer_notation_for_one_label

Infer the notation from one row or column label
get_prepositions

Extract prepositions from row and column labels
strip_label_part

A convenience function to help splitting prefixes and suffixes
in_notation

In notation
prepositions_list

Prepositions
notations_list

Notations list
paren_notation

Parenthetical notation
remove_label_pieces

Remove a prepositional phrase in a row or column label
of_notation

Of notation
paste_noun_pp

Recombine row and column labels
regex_funcs

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

To notation
row-col-notation

Row and column notation
get_nouns

Extract nouns from row and column labels
arrow_notation

Arrow notation