Man pages for wangtengyao/putils
Personal Utility Functions

blockdiagBlock diagonal matrix
bunchGrouping the left hand side in multiple assignment
colMaxColumn maximum
colMinColumn minimum
coloriseassign colours to distinct values of a vector
CvM.testCramer-von-Mise two sample test
dpdisplay decimal places nicely
EMEM algorithm
evaluateEvaluate multiple expressions
expitInverse of the logistic function
filter_data_frameFilter data frame by condition on selected columns
find.firstFind the location of first TRUE value in a boolean vector
find.lastFind the location of final TRUE value in a boolean vector
grapes-equals-grapesMultiple assignment
grapes-equals-grapes-.lbunchBinary Operator
grapes-setminus-grapesSet minus: remove elements of small set from large set
isStringCheck whether input is string
lambertWThe Lambert W function
logitThe logistic function
match.data.framematch rows of dataframes
matplotlib_palettematplotlib_palette return the first n palette colours
matrix.GramSchmidtApply Gram Schmidt operation to a matrix
matrix.normNorm of a matrix
matrix.powerCompute matrix power of a symmetric matrix
matrix.rankRank of a matrix
matrix.standardiseStandardise the columns of a matrix to have mean zero and...
matrix.traceTrace of a square matrix
mix_colorColor mixing
myplotgenerate a plot from a data frame with color and line type...
offdiagExtracting the off-diagonal part of A
powerMethodPower method for leading eigenvectors and eigenvalues
prefixExtract left substring
printlnPrint line
printPercentagePrint percentage
pseudoinverseCompute Moore-Penrose pseudoinverse of a real rectangular...
putilsputils: A package for personal utility functions.
QLQL decomposition of a matrix
QRQR decomposition of a matrix
random.bernoulliGenerate n random Bernoulli variables
random.GaussianMatrixGenerate a Gaussian random matrix
random.OrthogonalMatrixGenerate a random matrix with orthonormal columns
random.psdMatrixGenerate a random positive semidefinite matrix with operator...
random.rademacherGenerate n rademacher random variables
random.SymmetricMatrixGenerate a random symmetric matrix
random.UnitVectorGenerate a random unit vectors in R^n
random.WignerMatrixGenerate a random nxn Wigner matrix, where off diagonals are...
random.WishartMatrixGenerate a random nxn Wishart matrix
rep_alongRepeat a vector along another vector to achieve equal length
rowMaxRow maximum
rowMinRow minimum
setNAChange all NA values in v to a
sfdisplay signif nicely
sf_expdisplay signif of exponentiated number nicely
show.paramsShow parameter values
sim.paramsSimulation parameter data frame generation
sinThetaLossSine angle loss
snippetShow snippet of a large vector/matrix
sort_data_framesort dataframe
sort.data.frameSort data frame by columns
strlenString length
strstrSubstring search
styliseassign line types to distinct values of a vector
suffixExtract right substring
sweep_arithmeticBinary operators, add/subtract/multiply/divide a vector to a...
vector.cleanupClean up floating point epsilon terms
vector.clipClipping a vector from above and below
vector.hard.threshHard thresholding a vector
vector.normNorm of a vector
vector.normaliseNormalise a vector
vector.scrambleRandomly shuffle a vector
vector.soft.threshSoft thresholding a vector
visualiseVisualise a matrix X
write.latextableWrite Latex Table
wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.