Common R Scripts and Utilities Used by the Statnet Project Software
Test if all items in a vector or a list are identical.
Conveniently covert between coordinate-value and array representations
Convert to a control list.
A wrapper for base::attr which defaults to exact matching.
Ensure that the class of the control list is one of those that can be ...
"Compress" a data frame.
A generic function to compress a row-weighted table
Named element accessor for ergm control lists
Overwrite control parameters of one configuration with another.
Set options() according to a named list, skipping those already set.
Truncate values of high magnitude in a vector.
Utilities to help with deprecating functions.
A one-line function to strip whitespace from its argument.
Identify and the differences between two control lists.
Replace an object's environment with a simple, static environment.
Wrap an object into a singleton list if not already a list
A generic for querying and setting an object's environment
Attempt a series of statements and return the first one that is not an...
Format a p-value in fixed notation.
Evaluate an expression with a hard time limit by forking a process
Functions for Querying, Validating and Extracting from Formulas
Handle standard control.*() function semantics.
Test if the object is a matrix that is symmetric and positive definite
Locate a function with a given name and return it and its environment.
Utilities for performing calculations on logarithmic scale.
Construct a named vector with semantics useful for parameter vectors
Utility operations for mcmc.list objects
print objects to the message output.
Modify the argument in the calling environment of the calling function
Convenience functions for handling NULL objects.
Evaluate a function once for a given input.
Optionally test code depending on environment variable.
Concatenates the elements of a vector (optionaly enclosing them in quo...
Evaluate an expression, restarting on error
Pretty print the control list
Replace values in a vector according to functions
Return the matrix with diagonal set to a specified value
Set the class of the control list
A generic for setting the sign of an object
Convert a list to an atomic vector if it consists solely of atomic ele...
Skip a test if not called via R CMD check
Helper functions used by packages to facilitate snctrl updating.
Statnet Control
Implement the sort and order methods for data.frame and matrix...
Split a list or some other split()-able object by lengths
A split() method for array and matrix types on a margin.
Wrappers around matrix algebra functions that pre-scale their argu...
CITATION file utilities for Statnet packages (DEPRECATED)
Construct a "standard" startup message to be printed when the package ...
Suptract a elements of a vector from respective columns of a matrix
A helper class for list of terms in an formula
Make a copy of an environment with just the selected objects.
Extract or replace the ultimate (last) element of a vector or a li...
An error handler for rlang::check_dots_used() that issues a warning ...
Construct a logical vector with TRUE in specified positions.
reorder vector v into order determined by matching the names of its el...
A Welford accumulator for sample mean and variance
Top or bottom n elements of a vector
Set or extract weighted matrix row weights
A data matrix with row weights
Common quadratic forms
Non-statistical utilities used by the software developed by the Statnet Project. They may also be of use to others.