Project Management Tools


[Up] [Top]

Documentation for package ‘kutils’ version 1.0

Help Pages

alphaOnly Keep only alpha-numeric symbols
assignMissing Set missing values
assignRecode A variable is transformed in an indicated way
colnamesReplace Replace column names with new names from a named vector
compareCFA compareCFA
deleteBogusColumns Remove columns in which the proportion of missing data exceeds a threshold.
deleteBogusRows Remove rows in which the proportion of missing data exceeds a threshold.
detectNested Discern nesting pattern of SEM coefficients
dev.create Create a graphics device
dir.create.unique Create a uniquely named directory. Appends number & optionally date to directory name.
dms Delete multiple slashes, replace with one
dts Delete trailing slash
escape Text that is to be included as content in documents is cleaned (escaped) to prevent errors
histOMatic Show variables, one column at a time.
initProject Create project directories, initialize a git repo, create README.md ChangeLog, and R template file in R directory
is.data.frame.simple Check if a data frame is a simple collection of columns (no lists or matrices within)
keyApply Apply variable key to data frame (generate recoded data frame)
keyDiagnostic Diagnose accuracy of result from applying variable key to data
keyDiff Compares a key provided to keyUpdate with the return of keyUpdate
keyImport Import a file and clean up for use as variable key
keyTemplate Create variable key template
keyUpdate Update a key in light of a new data frame (add variables and values)
likert Percentage tables for Likert Scale variables
long2wide convert a key object from long to wide format
mgsub apply a vector of replacements, one after the other.
n2NA Convert nothing to R missing(NA).
natlongsurv Smoking, Happiness, and other survey responses
padW0 Insert 0's in the front of existing digits or characters so that all elements of a vector have the same number of characters.
peek Show variables, one column at a time.
print.keyDiagnostic Print the "changes" component of a keyDiagnostic object
removeMatches Remove elements if they are in a target vector, possibly replacing with NA
reverse Reverse the levels in a factor
safeInteger If a numeric variable has only integer values, then make it an integer.
semTable Creates Structural Equation Modeling Tables
shorten Reduce each in a vector of strings to a given length
starsig How many stars would we need for this p value?
stringbreak Insert "\n" after the k'th character in a string. This IS vectorized, so can receive just one or many character strings in a vector.
truncsmart Cuts a string at a specified linewidth, trying to align cut with a separator
updatePackages Update packages, spot new dependencies, and install them
wide2long Convert a key object from wide to long format
zapspace Convert leading or trailing white space and tab characters to nothing.