Man pages for kklot/ktools
Miscellaneous tools

addConvinient for R4 pipe
AddAlphaAddAlpha
adj_to_precisionGenerate precision matrix for spatial model from matrix of...
allotRight assign to using with pipe
AR2_QAutoregressive order 2 - AR(2) precision matrix generator
as_fieldConvert a R list of variable to mongo fields
as_orConvert an R named list to mongo 'OR'
as_queryConvert a R named list of variable and condition to mongo...
AUCAUC calculation
bangtable that take pipe input
barplottPlot bar chart in terminal
bgPlot text
bracketBrackets
browseShow data frame in browser
cdreplicate some features of bash cd
charConvenient create vector of character without the need to...
computeDo calculation, automatically converting type
corfrankCopulaFrank copulas parameter to kendall tau or spearman rho
crash_testCrash testing an expression
cutat0Cut at zero
d2rDate to Rate
date_to_cmcCMC from R date
dfrankCopulaFrank copulas density
dgumbelCopulagumbel copulas density
double_logisticDouble logistic function
double_logistic2Double logistic with three bounds
downloadDownload with httr
dskewlogisSkew-log-logistic distribution
dttbDisplay HTML with common options
efuncTo use in in tryCatch
eval_textEvaluate a text as expression
facet_unwrapUnwrap a facet_wrap plot
f_glogisIGeneralized logistic type I density
file_nameclean file name
fill_polygon_h3Fill 'sf' with 'h3' indexes
find_consecutiveFind consecutive (by one unit only)
findInterval2findInterval and return factor with label
find_in_zipfind filename matching regex in a zipped file
format_pvalueformat p-value for publishing
fracpolyFractional polynomial
fractional_polyFind best fit fractional polynomial using GLM
fwrite_bz2Write bzipped data file
gen_brewergenCols
gen_colorsgenCols
genRGenerate random walk precision structure matrix
gen_rwSimulated random walk
genSmoothgenSmooth
gen_widthsGenerate widths for geom_tile with unevenly space x-axis
getcoding_readstata13Read variable coding of a variable from stata file
getmeta_readstata13Read meta data from stata file
get_reportGet values of summary('sd_report') by name
ggcolDefault column plot for ktools
gg_groupPrepare ggplot by groups
gghistDefault histogram plot for ktools
gg_imgPlot a 2D matrix as image
gg_matPlot a 2D matrix as lines
ggpieDefault pie plot for ktools
grapes-notin-grapesNot in
grapes-out-grapesNot in = out
greptFind text match regex with grep with some tailored options
hex_fillFind most frequent occurrences in the neighbors and fill in...
histtPlot density in terminal
hlegendhlegend
hlinehline
image2Auto sort the columns to plotable matrix
invertInvert
is_negativeIs negative
iso2nameshorthand ISO to country name from countrycode package with...
is_sortedis sorted?
is_windowsCheck if system is Windows
join_listJoin elements of list a from list b
KaxisKaxis
KgridKgrid function
killKill R session
KLDKullback Liebler
KolygonKolygon
kompileCompile TMB with ktools header
kring_smoothK-ring smoothing
kutCut but automatically include min and max data's value
labelOutlierlabelOutlier
label_tableGenerate lookup table for haven read spss/stata
list_name_to_columnAdd nested list name to nested data column
list_zipList zip file contents with unzip or unar (default)
load_pkgWrapper of suppress message library loadings
logisticLogistic shape generator
logplotlogplot
log_prec_priorLog penalized complexity precision prior like INLA's internal
long_matrixMatrix with names to long table with rowname as column
lsSizelsSize
MakeADFunSafeMakeADFun safely terminated if there is a bound error
make_re_matrixGenerate model matrix for random effect, such as AR model
mapLeaflet map wrapper
meanstatformat cross table for publushing
month_year_to_cmcMonth year to cmc
morePager view similar to more
most_frequentFind most frequent occurrences with rle
mustats_3plusformat cross-IQR by groups (>2) for publishing
name2isoshorthand country name to ISO from countrycode package with...
name2listConvert named vector to a named list
name_collectionCollection of naming, renaming functions, values
named_listConstructing list with named from object name
nan_rmRemove NA/Inf from objects
napplyn(amed)apply: lapply but automatic add names to output
nullspace_penaltyNull-space penalty of the precision matrix
n_uniqueNumber of unique elements in a vector
open_fileOpen file with system's program (on MAC)
orderByOrder data frame
p_adjAdjusted prevalence using sensitivity and specificity
pfrankCopulaFrank copulas prob
pfu2TCID50PFU 2 2 TCID50
pgumbelCopulagumbel copulas prob
pickPick element in vector base on regex
plotbblankplot
PlotDataPlotData function
plothhplot
plotlnpbothplot
plotmPlot text
plotppointplot
plot_segmentPlot segments
plot_smoothlo
plottPlot text
plottcplot in terminal with color
prec2sdprecision to sd
putput
py2rConvert ipynb to Rmarkdown or R script
quantile95quantile 95% with name
quartz_offPrint ggplot off-screen
query_labelQuery variable and labels from data read with haven
query_nameQuery variable and labels from data read with haven
query_readstata13Query data frame read with readstata13
range2seqRange to sequence
range_labelRange label like 2019-20
R_binaryFind R binary depending on systems
rBindBinding rows, auto set colnames
read_in_zipRead a file match a pattern inside a zip file
readnbindRead and bind
rebaseRebase for indexing/modellin
recode_ifrecode keeping original data when conditions have NA
reexportsObjects exported from other packages
refactorHelp to refactor the factor easier
remove_consecutiveRemove consecutive (by one unit only)
remove_textRemove text from strings with gsub
rename_colRename a column
resizedev.new with named width and height
rmvnorm_sparseprecSample multivariates with precision matrix
row2idrownames to id
s2ns2n - String to numeric
sample_tmbSample TMB fit
save_jpg_for_submissionggplot to 300 dpi JPG for article submission
savePDFsavePDF function
savePNGsavePNG function
savePssavePs function
save_tocreate dir, change to, and return the name
sbatchSubmit SLURM job
scale_inverseGet original value before scale
scale_to_nscale_to_length
scale_to_rangescale to defined range
screen_to_fileOpen output of a function in a new text file (in default...
sd2precsd to precision
S_glogisIGeneralized logistic type I survival
sizingSizing the figure in Python notebook IRKernel
skimSimpler data overview
slurmPrepare the R script and sh file to submit to HPC managed...
snakingConvert to snake case from package snakecase
squareSquare
squeueMonitor SLURM queue
STATA_date_to_dateSTATA long date format to R date
strip_UStrip unicode characters
surv_splitSplit time to interval for survival model - improved
tabletabulate a variable with pipe
table_as_htmlView table as html
tabstatformat cross-table for publishing
take_noteWrite a note to file
tbl_ABTabulate 2 variables with count and percentage
tmb_compile_and_loadTMB compile and load
tmb_fixitTMB fix parameters
tmb_ICsCalculate Information criteria for TMB model
tmb_loadBasic loading of TMB model with basic name handling,...
tmb_unloadUnload loaded TMB dynamics
todayToday date
unarUnzip file with unar instead of unzip
unkountUncounting data frame using a weights
unroll_zipUnroll zipped files
var_llVariance of adjusted prevalence using sensitivity and...
vlinevline
waitwait function
which_emptyFind empty element in a nested list
which_inFind element in a vector and extract name not indice
which_notFind element not in a vector and extract name not indice
xylinexyline
kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.