knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

ktools

Lifecycle: stable Lifecycle: experimental

Miscellaneous function, color palettes, collected doing modelling, many trivial ones.

Installation

The development version from GitHub with:

devtools::install_github("kklot/ktools")

Examples of what inside:

more(LETTERS[rep(1:26, each=1000)])
# query KAIS surveys
query_label(b1, "cmc")
#     name                              label
# 1: qhint            Date of interview (CMC)
# 2:  q102                Date of birth (CMC)
# 3:  q212 Date of birth for last child (CMC)
# 4:  q318 Date of birth for last child (CMC)
query_name(b2, "weight")                                                                                                
#          name label
# 1: rawiweight      
# 2: rawbweight      
# 3:   aiweight      
# 4:   abweight      
g <- iris %>%
  ggplot(aes(Sepal.Length)) +
  geom_histogram() +
  facet_wrap(~Species)
facet_unwrap(g)
# these two are equivalent
a <- tibble(x = 1)
tibble(x = 1) %>% allot(a)
char(a, b, c)
# [1] "a" "b" "c"
cd()
# Moved from: /Users/knguyen/Code/R/ktools
#  to ~
cd('-')
# Moved from: /Users/knguyen
#  to /Users/knguyen/Code/R/ktools
AR2_Q
MakeADFunSafe
nullspace_penalty()
name2list(c(x = 1, abc = 2))

Let search engines do the work of documenting.



kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.