Common R Scripts and Utilities Used by the Statnet Project Software

all_identical | Test if all items in a vector or a list are identical. |

as.control.list | Convert to a control list. |

attr | A wrapper for base::attr which defaults to exact matching. |

check.control.class | Ensure that the class of the control list is one of those... |

compress_rows | A generic function to compress a row-weighted table |

compress_rows.data.frame | "Compress" a data frame. |

control.list.accessor | Named element accessor for ergm control lists |

control.remap | Overwrite control parameters of one configuration with... |

default_options | Set 'options()' according to a named list, skipping those... |

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

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

ERRVL | Return the first argument passed (out of any number) that is... |

fixed.pval | Format a p-value in fixed notation. |

forkTimeout | Evaluate an R expression with a hard time limit by forking a... |

formula.utilities | Functions for Querying, Validating and Extracting from... |

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

locate_function | Locate a function with a given name and return it and its... |

logspace.utils | Utilities for performing calculations on logarithmic scale. |

mcmc-utilities | Utility operations for 'mcmc.list' objects |

message_print | 'print' objects to the 'message' output. |

NVL | Convenience functions for handling 'NULL' objects. |

once | Evaluate a function once for a given input. |

opttest | Optionally test code depending on environment variable. |

paste.and | Concatenates the elements of a vector (optionaly enclosing... |

persistEval | Evaluate an expression, restarting on error |

print.control.list | Pretty print the control list |

set.control.class | Set the class of the control list |

simplify_simple | Convert a list to an atomic vector if it consists solely of... |

snctrl | Statnet Control |

snctrl-API | Helper functions used by packages to facilitate 'snctrl'... |

sort.data.frame | Implement the 'sort' and 'order' methods for 'data.frame' and... |

split.array | A 'split()' method for 'array' and 'matrix' types on a... |

statnet.cite | 'CITATION' file utilities for Statnet packages (DEPRECATED) |

statnetStartupMessage | Construct a "standard" startup message to be printed when the... |

sweep_cols.matrix | Suptract a elements of a vector from respective columns of a... |

term_list | A helper class for list of terms in an formula |

trim_env | Make a copy of an environment with just the selected objects. |

ult | Extract or replace the _ult_imate (last) element of a vector... |

unwhich | Construct a logical vector with 'TRUE' in specified... |

vector.namesmatch | reorder vector v into order determined by matching the names... |

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 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.