Man pages for haddonm/rutilsMH
DEPRECATED. USE codeutils AND hplot INSTEAD. Contains utility functions commonly used when writing R code.

cart2polcart2pol converts cartesian coordinates into the polar angle
circlecircle draws a circle with a given origin and radius
classDFclassDF - tabluate the class of each column in a da
countgtOnecountgtOne used in apply to count the number > 1 in a vector
countgtzerocountgtzero used in apply to count the number >0 in a vector
countNAscountNAs used in apply to count the number of NAs in a vector
countonescountones used in apply to count the number of ones in a...
countzeroscountzeros used in apply to count the number of zeros in a...
describefunctionsdescribefunctions lists all R functions in a set of files
diagramsdiagrams provides the syntax of functions for making diagrams
digitsbyrowdigitsbyrow a helper function for knitr, to specify formats...
extractpathwayextractpathway traces the sequence of functions calls within...
extractRcodeextractRcode pulls out the r-code blocks from Rmd files
facttonumfacttonum converts a vector of numeric factors into numbers
findfunsfindfuns finds references to other functions within other...
freqMeanfreqMean calculates the mean and stdev of count data
geomeangeomean log-normal bias corrected geometric mean of a vector
getDBdirgetDBdir identifies the DropBox path
getmaxgetmax generates the upper bound for a plot
getmingetmin generates the lower bound for a plot
getnamegetname returns the name of a variable as character
getnamespacegetnamespace returns the namespace for a given function
getseedgetseed generates a random number seed
gettimegettime calculates time in seconds passed each day
grapes-ni-grapes'%ni%' identifies which element in x is NOT in y
greplowgreplow - uses tolower in the search for the pattern
halftablehalftable halves the height of a tall narrow data.frame
identifyfunsidentifyfuns uses text from readLines to identify function...
infoinfo gets the dimension or length of a matrix, array,...
inthistinthist a replacement for the hist and boxplot functions
kablerowkablerow a replacement for knitr::kable which enables row...
lineptlinept adds a line and a series of points to a plot
lininterpollininterpol - linearly interpolate values in a vector with...
listExampleslistExamples lists all the examples in a package R file
listfunslistfuns produces a listing of all functions in an input R...
magnitudemagnitude returns the magnitude of numbers
makecanvasmakecanvas sets up a plotting area ready for the flowchart
makerectmakerect draws a rectangle once a plot is available
makeUnitmakeUnit generates a unit matrix whose diagonal can be...
makevxmakevx make an x values vector
makevymakevy make a y values vector
newplotnewplot simple floating window setup a plot
outfitoutfit tidy print of output from optim, nlminb, or nlm
parsetparset alters the current base graphics par settings
parsynparsyn types standard syntax for the par command to the...
pickboundpickbound selects an optimum number of rows and cols for a...
pkgfunspkgfuns names all functions within a package
plot1plot1 a simple way to plot an xy line plot
plotnullplotnull generates an empty plot when one is needed
plotoblongplotoblong generates an oblong from x0,x1,y0,y1
plotprepplotprep sets up a window and the par values for a single...
plotxyyplotxyy plots two vectors of numbers against single x-axis
pol2cartpol2cart polar to cartesian coordinates
printVprintV returns a vector cbinded to 1:length(invect)
propertiesproperties - used to check a data.frame before...
pythagpythag calculates Pythagorus' theorum on a vector of two...
quantsquants used in apply to estimate quantiles across a vector
removeEmptyremoveEmpty removes empty strings from a vector of strings
revsumrevsum generates a vector of the cumulative sum from n to 1
rmdcssrmdcss generates some initial css style code for HTML Rmd...
rutilsMHrutilsMH: a set of functions to assist with code development
setplotsetplot provides an example plot with defaults for a standard...
setuprmdsetuprmd sets up and Rmd file ready to generate an HTML file
splitDatesplitDate - Generates a vector of date and time components
str1str1 a simple replacement for str(x,max.level=1)
str2str2 a simple replacement for str(x,max.level=2)
tidynamestidynames can replace awkward data.frame names with better...
toXLtoXL copies a data.frame or matrix to the clipboard
uphistuphist a histogram with an upper limit on the x-axis
which.closestwhich.closest find the number closest to a given value
wtedmeanwtedmean calculates the weighted mean of a set of values and...
haddonm/rutilsMH documentation built on July 21, 2023, 8:46 p.m.