Learn R Programming

cgwtools (version 4.1)

Miscellaneous Tools

Description

Functions for performing quick observations or evaluations of data, including a variety of ways to list objects by size, class, etc. The functions 'seqle' and 'reverse.seqle' mimic the base 'rle' but can search for linear sequences. The function 'splatnd' allows the user to generate zero-argument commands without the need for 'makeActiveBinding' . Functions provided to convert from any base to any other base, and to find the n-th greatest max or n-th least min. In addition, functions which mimic Unix shell commands, including 'head', 'tail' ,'pushd' ,and 'popd'. Various other goodies included as well.

Copy Link

Version

Install

install.packages('cgwtools')

Monthly Downloads

303

Version

4.1

License

LGPL-3

Maintainer

Carl Witthoft

Last Published

October 20th, 2023

Functions in cgwtools (4.1)

lssize

List the sizes of all selected objects.
polyInt

Function to find intersection points of two polygons.
seqle

Extends rle to find and encode linear sequences.
popd

Performs equivalent of bash command with same name
short

Returns a small sample of the specified data set.
ratRoot

Function to find the rational roots of any polynomial (when they exist).
splatnd

Execute simple zero-argument functions
pushd

Performs equivalent of bash command with same name
thekurt

Calculates the kurtosis of the input data set.
theskew

Calculates the skew of a dataset.
segSegInt

Function to find intersection point between two line segments (NOT lines).
resave

Add some objects to an existing .Rdata - type file.
cumfun

Function calculate the cumulative result of any function along an input vector.
dirdir

Wrapper function around dir() which returns only directories found in the specified location(s).
binit

Create histogram bins for each unique value in a sample.
dim

Function to return dimensions of arguments, or lengths if dim==NULL.
approxeq

Do "fuzzy" equality and return a logical vector.
base2base

Function to convert any base to any other base (up to 36).
askrm

Interactive application of selected function a list of objects.
cgwtools-package

A collection of tools that the author finds handy
banvax

Function print a text banner in the style of the original DEC VAX "banner" function.
ascarr

Banner Versions of Characters
minRow

Functions which mimic max.col to find for minimum or maximum of rows or columns.
lstype

List all objects of the specified type.
findpat

Function to locate patterns ( sequences of strings or numerical values) in data vectors.
lsdata

List all objects in an .Rdata file.
maxn

Functions to find the n-th maximum or minimum of a vector or array.
lsclass

Q&D function to list all objects with the specified class attribute .
inverse.seqle

Inverse of seqle
getstack

Returns the current directory stack that pushd and popd manipulate
mystat

Calculate and display basic statistics for an object.