Learn R Programming

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

statnet.common (version 4.3.0)

Common R Scripts and Utilities Used by the Statnet Project Software

Description

Non-statistical utilities used by the software developed by the Statnet Project. They may also be of use to others.

Copy Link

Version

Install

install.packages('statnet.common')

Monthly Downloads

26,669

Version

4.3.0

License

GPL-3 + file LICENSE

Maintainer

Pavel N Krivitsky

Last Published

June 2nd, 2019

Functions in statnet.common (4.3.0)

paste.and

Concatenates the elements of a vector (optionaly enclosing them in quotation marks or parentheses) adding appropriate punctuation and conjunctions.
deprecation-utilities

Utilities to help with deprecating functions.
all_identical

Test if all items in a vector or a list are identical.
as.rle

Coerce to rle if not already an rle object.
once

Evaluate a function once for a given input.
opttest

Optionally test code depending on environment variable.
sweep_cols.matrix

Suptract a elements of a vector from respective columns of a matrix
ult

Extract or replace the ultimate (last) element of a vector or a list, or an element counting from the end.
persistEval

Evaluate an expression, restarting on error
print.control.list

Pretty print the control list
NVL

ERRVL

compress.data.frame

"Compress" a data frame.
mcmc-utilities

rle.utils

RLE utilities
vector.namesmatch

reorder vector v into order determined by matching the names of its elements to a vector of names
message_print

print objects to the message output.
unwhich

Construct a logical vector with TRUE in specified positions.
forkTimeout

Evaluate an R expression with a hard time limit by forking a process
despace

A one-line function to strip whitespace from its argument.
statnet.cite

CITATION file utilities for Statnet packages (DEPRECATED)
statnetStartupMessage

Construct a "standard" startup message to be printed when the package is loaded.
wmatrix

A data matrix with row weights
wmatrix_weights

Set or extract weighted matrix row weights
set.control.class

Set the class of the control list
control.list.accessor

Named element accessor for ergm control lists
logspace.utils

Utilities for performing calculations on logarithmic scale.
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.
order

Implement the sort and order methods for data.frame and matrix, sorting it in lexicographic order.
compress_rows

A generic function to compress a row-weighted table
control.remap

Overwrite control parameters of one configuration with another.
check.control.class

Check if the class of the control list is one of those that can be used by the calling function