R: Common R Scripts and Utilities Used by the Statnet Project Software

# Common R Scripts and Utilities Used by the Statnet Project Software

## Documentation for package ‘statnet.common’ version 4.6.0

- DESCRIPTION file.
- Package NEWS.

## Help Pages

A B C D E F H I L M N O P R S T U V W misc

## -- A --

all_identical | Test if all items in a vector or a list are identical.
append.rhs.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
append_rhs.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
as.control.list | Convert to a control list.
as.control.list.control.list | Convert to a control list.
as.control.list.list | Convert to a control list.
as.linwmatrix | A data matrix with row weights
as.linwmatrix.linwmatrix | A data matrix with row weights
as.linwmatrix.logwmatrix | A data matrix with row weights
as.linwmatrix.matrix | A data matrix with row weights
as.logwmatrix | A data matrix with row weights
as.logwmatrix.linwmatrix | A data matrix with row weights
as.logwmatrix.logwmatrix | A data matrix with row weights
as.logwmatrix.matrix | A data matrix with row weights
attr | A wrapper for base::attr which defaults to exact matching.

## -- B --

base_env | Replace an object's environment with a simple, static environment.

## -- C --

check.control.class | Ensure that the class of the control list is one of those that can be used by the calling function
COLLATE_ALL_MY_CONTROLS_EXPR | Helper functions used by packages to facilitate 'snctrl' updating.
collate_controls | Helper functions used by packages to facilitate 'snctrl' updating.
colMeans.mcmc.list | Utility operations for 'mcmc.list' objects
compress_rows | A generic function to compress a row-weighted table
compress_rows.data.frame | "Compress" a data frame.
compress_rows.linwmatrix | A data matrix with row weights
compress_rows.logwmatrix | A data matrix with row weights
control.list.accessor | Named element accessor for ergm control lists
control.remap | Overwrite control parameters of one configuration with another.

## -- D --

decompress_rows | A generic function to compress a row-weighted table
decompress_rows.compressed_rows_df | "Compress" a data frame.
decompress_rows.wmatrix | A data matrix with row weights
default_options | Set 'options()' according to a named list, skipping those already set.
deInf | Truncate values of high magnitude in a vector.
deprecation-utilities | Utilities to help with deprecating functions.
despace | A one-line function to strip whitespace from its argument.
diff.control.list | Identify and the differences between two control lists.

## -- E --

empty_env | Replace an object's environment with a simple, static environment.
ERRVL | Return the first argument passed (out of any number) that is not a 'try-error' (result of 'try' encountering an error.
eval_lhs.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
EVL | Convenience functions for handling 'NULL' objects.
EVL2 | Convenience functions for handling 'NULL' objects.
EVL3 | Convenience functions for handling 'NULL' objects.
EVL<- | Convenience functions for handling 'NULL' objects.

## -- F --

filter_rhs.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
fixed.pval | Format a p-value in fixed notation.
forkTimeout | Evaluate an R expression with a hard time limit by forking a process
formula.utilities | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.

## -- H --

handle.controls | Handle standard control.*() function semantics.

## -- I --

is.linwmatrix | A data matrix with row weights
is.logwmatrix | A data matrix with row weights
is.wmatrix | A data matrix with row weights

## -- L --

lapply.mcmc.list | Utility operations for 'mcmc.list' objects
linwmatrix | A data matrix with row weights
list_rhs.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
list_summands.call | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
locate_function | Locate a function with a given name and return it and its environment.
locate_prefixed_function | Locate a function with a given name and return it and its environment.
logspace.utils | Utilities for performing calculations on logarithmic scale.
logwmatrix | A data matrix with row weights
log_mean_exp | Utilities for performing calculations on logarithmic scale.
log_sum_exp | Utilities for performing calculations on logarithmic scale.
lrowweights | Set or extract weighted matrix row weights
lrowweights.linwmatrix | Set or extract weighted matrix row weights
lrowweights.logwmatrix | Set or extract weighted matrix row weights
lrowweights<- | Set or extract weighted matrix row weights
lrowweights<-.linwmatrix | Set or extract weighted matrix row weights
lrowweights<-.logwmatrix | Set or extract weighted matrix row weights
lrowweights<-.matrix | Set or extract weighted matrix row weights
lweighted.mean | Utilities for performing calculations on logarithmic scale.
lweighted.var | Utilities for performing calculations on logarithmic scale.

## -- M --

mcmc-utilities | Utility operations for 'mcmc.list' objects
message_print | 'print' objects to the 'message' output.

## -- N --

nonsimp.update.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
nonsimp_update.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
NVL | Convenience functions for handling 'NULL' objects.
NVL2 | Convenience functions for handling 'NULL' objects.
NVL3 | Convenience functions for handling 'NULL' objects.
NVL<- | Convenience functions for handling 'NULL' objects.

## -- O --

once | Evaluate a function once for a given input.
opttest | Optionally test code depending on environment variable.
order | Implement the 'sort' and 'order' methods for 'data.frame' and 'matrix', sorting it in lexicographic order.
order.data.frame | Implement the 'sort' and 'order' methods for 'data.frame' and 'matrix', sorting it in lexicographic order.
order.default | Implement the 'sort' and 'order' methods for 'data.frame' and 'matrix', sorting it in lexicographic order.
order.matrix | Implement the 'sort' and 'order' methods for 'data.frame' and 'matrix', sorting it in lexicographic order.

## -- P --

paste.and | Concatenates the elements of a vector (optionaly enclosing them in quotation marks or parentheses) adding appropriate punctuation and conjunctions.
persistEval | Evaluate an expression, restarting on error
persistEvalQ | Evaluate an expression, restarting on error
print.control.list | Pretty print the control list
print.diff.control.list | Identify and the differences between two control lists.
print.linwmatrix | A data matrix with row weights
print.logwmatrix | A data matrix with row weights
print.wmatrix | A data matrix with row weights

## -- R --

rowweights | Set or extract weighted matrix row weights
rowweights.linwmatrix | Set or extract weighted matrix row weights
rowweights.logwmatrix | Set or extract weighted matrix row weights
rowweights<- | Set or extract weighted matrix row weights
rowweights<-.linwmatrix | Set or extract weighted matrix row weights
rowweights<-.logwmatrix | Set or extract weighted matrix row weights
rowweights<-.matrix | Set or extract weighted matrix row weights

## -- S --

set.control.class | Set the class of the control list
simplify_simple | Convert a list to an atomic vector if it consists solely of atomic elements of length 1.
snctrl | Statnet Control
snctrl-API | Helper functions used by packages to facilitate 'snctrl' updating.
snctrl_names | Helper functions used by packages to facilitate 'snctrl' updating.
sort.data.frame | Implement the 'sort' and 'order' methods for 'data.frame' and 'matrix', sorting it in lexicographic order.
split.array | A 'split()' method for 'array' and 'matrix' types on a margin.
split.matrix | A 'split()' method for 'array' and 'matrix' types on a margin.
statnet.cite | 'CITATION' file utilities for Statnet packages (DEPRECATED)
statnet.cite.foot | 'CITATION' file utilities for Statnet packages (DEPRECATED)
statnet.cite.head | 'CITATION' file utilities for Statnet packages (DEPRECATED)
statnet.cite.pkg | 'CITATION' file utilities for Statnet packages (DEPRECATED)
statnetStartupMessage | Construct a "standard" startup message to be printed when the package is loaded.
sweep.mcmc.list | Utility operations for 'mcmc.list' objects
sweep_cols.matrix | Suptract a elements of a vector from respective columns of a matrix

## -- T --

term.list.formula | Functions for Querying, Validating and Extracting from Formulas A suite of utilities for handling model formulas of the style used in Statnet packages.
trim_env | Make a copy of an environment with just the selected objects.
trim_env.default | Make a copy of an environment with just the selected objects.
trim_env.environment | Make a copy of an environment with just the selected objects.

## -- U --

ult | Extract or replace the _ult_imate (last) element of a vector or a list, or an element counting from the end.
ult<- | Extract or replace the _ult_imate (last) element of a vector or a list, or an element counting from the end.
unwhich | Construct a logical vector with 'TRUE' in specified positions.
update.Welford | A Welford accumulator for sample mean and variance
UPDATE_MY_SCTRL_EXPR | Helper functions used by packages to facilitate 'snctrl' updating.
update_snctrl | Helper functions used by packages to facilitate 'snctrl' updating.

## -- V --

vector.namesmatch | reorder vector v into order determined by matching the names of its elements to a vector of names

## -- W --

Welford | A Welford accumulator for sample mean and variance
wmatrix | A data matrix with row weights
wmatrix_weights | Set or extract weighted matrix row weights

## -- misc --

$.control.list | Named element accessor for ergm control lists
.Deprecate_method | Utilities to help with deprecating functions.
.Deprecate_once | Utilities to help with deprecating functions.
[.wmatrix | A data matrix with row weights
[<-.wmatrix | A data matrix with row weights