Learn R Programming

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

cgwtools (version 3.3)

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

Copy Link

Version

Install

install.packages('cgwtools')

Monthly Downloads

305

Version

3.3

License

LGPL-3

Maintainer

Carl Witthoft

Last Published

January 6th, 2021

Functions in cgwtools (3.3)

lstype

List all objects of the specified type.
lsdata

List all objects in an .Rdata file.
lssize

List the sizes of all selected objects.
inverse.seqle

Inverse of seqle
lsclass

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

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

Extends rle to find and encode linear sequences.
getstack

Returns the current directory stack that pushd and popd manipulate
minRow

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

Calculate and display basic statistics for an object.
polyInt

Function to find intersection points of two polygons.
short

Returns a small sample of the specified data set.
popd

Performs equivalent of bash command with same name
maxn

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

Calculates the kurtosis of the input data set.
theskew

Calculates the skew of a dataset.
pushd

Performs equivalent of bash command with same name
splatnd

Execute simple zero-argument functions
resave

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

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

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

A collection of tools that the author finds handy
base2base

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

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

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

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

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

Interactive application of selected function a list of objects.