Kmisc: Kevin Miscellaneous

This package contains a collection of functions for common data extraction and reshaping operations, string manipulation, and functions for table and plot generation for R Markdown documents.

AuthorKevin Ushey
Date of publication2013-12-13 06:40:46
MaintainerKevin Ushey <kevinushey@gmail.com>
LicenseGPL (>= 2)
Version0.5.0
https://github.com/kevinushey/Kmisc

View on CRAN

Man pages

anat: Display the Anatomy of a Data Frame

any_na: Check whether there are any Missing Values in a Vector

apply: Apply Wrappers

attachHTML: Attach Common, Non-Masking HTML Functions

awk: A Simple Front-end to Awk

awk.set: Set awk

bwplot2: Custom Lattice Boxplot

cat.cb: Write Data to the Clipboard

cd: Set Working Directory

char_to_factor: Converts Characters to Factors in an Object

chunk: Generate a Sequence of Integers, and Split into Chunks

clean_doc: Clean Documentation in Current Package

counts: Generate Counts of Values in a Vector

dapply: Apply a Function over a List

detachHTML: Detach Common, Non-Masking HTML Functions

duplicate: Force a Copy of an R Object

extract: Extract Elements from a Named Object

extract_rows_from_file: Extract Rows from File

factor_: Fast Factor Generation

factor_to_char: Converts Factors to Characters in an Object

getObjects: Get all Objects in Environment

gradient: Generate Gradient from Continuous Variable

grid.text2: Grid Text with a Background

hImg: Print Plot to File and Return HTML

hSvg: Print SVG to File and Return HTML

html: Print HTML Elements

htmlTable: Generate an HTML Table

in_interval: Determine if Value Lies within Interval

is.sorted: Test if an Object is Sorted

kAnova: Nicely Formatted ANOVA Table

kCoef: Nicely Formatted Model Coefficient Output

kFivenum: Fivenum with Names

kImg: HTML - Source an Image

kLoad: Load and Assign an R Object

kmeans_plot: k-means Diagnostic Plot

kMerge: Merge (Left Join) with Order Retainment

Kmisc: Kmisc

Kmisc.knit2html: Knit an Rmd File to HTML with Kmisc Styling

kSave: Write out and Save a Tabular File

kSvg: HTML - Source an SVG file

kTable: Make Nicely Formatted Tables

labeller: ggplot2 labeller

lg: length( grep( ... ) )

list2df: Convert list to data.frame

lu: Number of non-NA unique elements in a vector

make_dummy: Make Dummy Variables from a Factor

makeHTMLTable: Make HTML Table from R 'table-like' Object

makeHTMLTag: Make HTML Elements

manhattan_plot: Make a Manhattan Plot

mat2df: Convert a Matrix to a DataFrame

matches: Count Matches

melt_: Make a 'Wide' data set 'Long'

p1t: Make 1D HTML Table

pad: Pad an Object with NAs

par.reset: Restore the 'par' settings

pMerge: Merge a Data Frame 'into' Another

pp_plot: Construct a Probability-Probability Plot from a Set of...

prepare_package: Prepare Package

print.kHTML: Print kHTML Objects

pxt: Make 2x2 HTML Contingency Table

pymat: Python-style Formatting of Strings.

rcpp_apply_generator: Rcpp Apply Generator

Rcpp_gen_makevars: Reproduce Rcpp Makevars Files

rcpp_tapply_generator: Rcpp tapply Generator

read: Read a File

read.cb: Read Tabular Data from the Clipboard

regex: Pattern matching and Replacement

remove_chars: Remove Alphabetic Characters from a Character Vector

remove_digits: Remove Digits from a Character Vector

remove_na: Remove NA Entries from a Vector

scan.cb: Read Data from the Clipboard

simp: Area Under the Curve with Simpson's Rule

size: Print the Object Size, with Auto Units

split_file: Split a File by Unique Entries in a Column

split_runs: Split by Runs

stack_list: Stack a List of DataFrame-like Objects

str_collapse: Collapse a String

strip_extension: Strip File Extension

str_rev: Reverse a Vector of Strings

str_rev2: Reverse a Vector of Strings (UTF-8)

str_slice: Slice a Vector at Consecutive Indices

str_slice2: Slice a Vector at Consecutive Indices

str_sort: Sort a Vector of Strings

str_split: Split a Vector of Strings Following a Regular Structure

swap: Swap Elements in a Vector

swap_: Swap Elements in a Vector

sys: Invoke a System Command

tapply_: Faster tapply

transpose: Tranpose an Object

tree: Print a Tree Representation of an Object of Nested Lists

u: Unique elements in a vector

unmelt: Unmelt a Melted Data Frame

update_date: Update Date in DESCRIPTION File

us: unlist( strsplit( ... ) )

value_matching: Value Matching

without: Remove Elements from a Named Object

wrap: Wrap a String

write.cb: Write Tabular Data to the Clipboard

Files in this package

Kmisc
Kmisc/inst
Kmisc/inst/resources
Kmisc/inst/resources/highlight
Kmisc/inst/resources/highlight/README.ru.md
Kmisc/inst/resources/highlight/classref.txt
Kmisc/inst/resources/highlight/highlight.pack.js
Kmisc/inst/resources/highlight/styles
Kmisc/inst/resources/highlight/styles/googlecode.css
Kmisc/inst/resources/highlight/styles/vs.css
Kmisc/inst/resources/highlight/styles/brown_papersq.png
Kmisc/inst/resources/highlight/styles/brown_paper.css
Kmisc/inst/resources/highlight/styles/tomorrow-night.css
Kmisc/inst/resources/highlight/styles/ascetic.css
Kmisc/inst/resources/highlight/styles/arta.css
Kmisc/inst/resources/highlight/styles/pojoaque.css
Kmisc/inst/resources/highlight/styles/dark.css
Kmisc/inst/resources/highlight/styles/school_book.png
Kmisc/inst/resources/highlight/styles/tomorrow.css
Kmisc/inst/resources/highlight/styles/monokai.css
Kmisc/inst/resources/highlight/styles/solarized_light.css
Kmisc/inst/resources/highlight/styles/far.css
Kmisc/inst/resources/highlight/styles/github.css
Kmisc/inst/resources/highlight/styles/ir_black.css
Kmisc/inst/resources/highlight/styles/pojoaque.jpg
Kmisc/inst/resources/highlight/styles/tomorrow-night-bright.css
Kmisc/inst/resources/highlight/styles/school_book.css
Kmisc/inst/resources/highlight/styles/magula.css
Kmisc/inst/resources/highlight/styles/solarized_dark.css
Kmisc/inst/resources/highlight/styles/xcode.css
Kmisc/inst/resources/highlight/styles/rainbow.css
Kmisc/inst/resources/highlight/styles/default.css
Kmisc/inst/resources/highlight/styles/zenburn.css
Kmisc/inst/resources/highlight/styles/tomorrow-night-eighties.css
Kmisc/inst/resources/highlight/styles/tomorrow-night-blue.css
Kmisc/inst/resources/highlight/styles/sunburst.css
Kmisc/inst/resources/highlight/LICENSE
Kmisc/inst/resources/css
Kmisc/inst/resources/css/Kmisc.css
Kmisc/inst/resources/css/jquery.tocify.css
Kmisc/inst/resources/shiny
Kmisc/inst/resources/shiny/ui.R
Kmisc/inst/resources/shiny/server.R
Kmisc/inst/resources/bootstrap
Kmisc/inst/resources/bootstrap/css
Kmisc/inst/resources/bootstrap/css/bootstrap.css
Kmisc/inst/resources/bootstrap/css/bootstrap.min.css
Kmisc/inst/resources/bootstrap/css/bootstrap-theme.min.css
Kmisc/inst/resources/bootstrap/css/bootstrap-theme.css
Kmisc/inst/resources/bootstrap/js
Kmisc/inst/resources/bootstrap/js/bootstrap.js
Kmisc/inst/resources/bootstrap/js/bootstrap.min.js
Kmisc/inst/resources/bootstrap/fonts
Kmisc/inst/resources/bootstrap/fonts/glyphicons-halflings-regular.ttf
Kmisc/inst/resources/bootstrap/fonts/glyphicons-halflings-regular.svg
Kmisc/inst/resources/bootstrap/fonts/glyphicons-halflings-regular.woff
Kmisc/inst/resources/bootstrap/fonts/glyphicons-halflings-regular.eot
Kmisc/inst/resources/markdown_HTML_template.html
Kmisc/inst/resources/js
Kmisc/inst/resources/js/fancyboxify.js
Kmisc/inst/resources/js/jquery-ui-1.10.3.custom.min.js
Kmisc/inst/resources/js/jquery-2.0.3.min.js
Kmisc/inst/resources/js/jquery.tocify.min.js
Kmisc/inst/doc
Kmisc/inst/doc/Kmisc-intro.Rmd
Kmisc/inst/doc/Kmisc-intro.R
Kmisc/inst/doc/Kmisc-intro.html
Kmisc/tests
Kmisc/tests/testthat
Kmisc/tests/testthat/test-melt_.R
Kmisc/tests/testthat/test-any_na.R
Kmisc/tests/testthat/test-extract_rows_from_file.R
Kmisc/tests/testthat/test-unmelt.R
Kmisc/tests/testthat/test-split_file.R
Kmisc/tests/testthat/test-mat2df.R
Kmisc/tests/testthat/test-swap.R
Kmisc/tests/testthat/test-counts.R
Kmisc/tests/testthat/test-factor_to_char.R
Kmisc/tests/testthat/test-stack_list.R
Kmisc/tests/testthat/test-str_split.R
Kmisc/tests/testthat/test-list_to_df.R
Kmisc/tests/testthat/test-char_to_factor.R
Kmisc/tests/testthat/test-kMerge.R
Kmisc/tests/testthat/test-labeller.R
Kmisc/tests/testthat/test-transpose.R
Kmisc/tests/testthat/test-apply.R
Kmisc/tests/testthat/test-awk.R
Kmisc/tests/testthat/test-fast_factor.R
Kmisc/tests/testthat/test-read.R
Kmisc/src
Kmisc/src/Makevars
Kmisc/src/Kmisc_cpp.cpp
Kmisc/src/Kmisc_c.c
Kmisc/src/Makevars.win
Kmisc/src/init.c
Kmisc/src/RcppExports.cpp
Kmisc/NAMESPACE
Kmisc/NEWS
Kmisc/R
Kmisc/R/html_extras.R Kmisc/R/split_file.R Kmisc/R/Kmisc-package.R Kmisc/R/update_date.R Kmisc/R/swap.R Kmisc/R/copy.R Kmisc/R/awk.R Kmisc/R/any_na.R Kmisc/R/size.R Kmisc/R/mat2df.R Kmisc/R/str_sort.R Kmisc/R/clean_doc.R Kmisc/R/fast_factor.R Kmisc/R/tapply_.R Kmisc/R/labeller.R Kmisc/R/nametree.R Kmisc/R/matches.R Kmisc/R/pad.R Kmisc/R/registerFunctions.R Kmisc/R/regex.R Kmisc/R/pymat.R Kmisc/R/manhattan_plot.R Kmisc/R/anat.R Kmisc/R/simp.R Kmisc/R/bwplot2.R Kmisc/R/str_rev.R Kmisc/R/str_slice.R Kmisc/R/counts.R Kmisc/R/in_interval.R Kmisc/R/rcpp_apply_generator.R Kmisc/R/prepare_package.R Kmisc/R/wrap.R Kmisc/R/apply.R Kmisc/R/RcppExports.R Kmisc/R/sys.R Kmisc/R/html_attach.R Kmisc/R/pMerge.R Kmisc/R/melt_.R Kmisc/R/html.R Kmisc/R/unmelt.R Kmisc/R/remove_char_digit.R Kmisc/R/html_tags.R Kmisc/R/pp_plot.R Kmisc/R/extract.R Kmisc/R/value_matching.R Kmisc/R/htmlTable.R Kmisc/R/chunk.R Kmisc/R/stack_list.R Kmisc/R/misc.R Kmisc/R/read.R Kmisc/R/extract_rows_from_file.R Kmisc/R/transpose.R Kmisc/R/split_runs.R Kmisc/R/str_split.R Kmisc/R/Kmisc-md2html.R Kmisc/R/list_to_dataframe.R Kmisc/R/is_sorted.R Kmisc/R/str_collapse.R Kmisc/R/Rcpp_gen_makevars.R Kmisc/R/grid.text2.R Kmisc/R/par.reset.R Kmisc/R/rcpp_tapply_generator.R
Kmisc/vignettes
Kmisc/vignettes/Kmisc-intro.Rmd
Kmisc/MD5
Kmisc/build
Kmisc/build/vignette.rds
Kmisc/DESCRIPTION
Kmisc/man
Kmisc/man/strip_extension.Rd Kmisc/man/kmeans_plot.Rd Kmisc/man/lg.Rd Kmisc/man/gradient.Rd Kmisc/man/stack_list.Rd Kmisc/man/prepare_package.Rd Kmisc/man/attachHTML.Rd Kmisc/man/melt_.Rd Kmisc/man/makeHTMLTag.Rd Kmisc/man/pMerge.Rd Kmisc/man/tapply_.Rd Kmisc/man/kFivenum.Rd Kmisc/man/us.Rd Kmisc/man/scan.cb.Rd Kmisc/man/rcpp_apply_generator.Rd Kmisc/man/swap.Rd Kmisc/man/any_na.Rd Kmisc/man/Rcpp_gen_makevars.Rd Kmisc/man/str_rev2.Rd Kmisc/man/p1t.Rd Kmisc/man/hSvg.Rd Kmisc/man/grid.text2.Rd Kmisc/man/str_slice2.Rd Kmisc/man/kAnova.Rd Kmisc/man/str_split.Rd Kmisc/man/pymat.Rd Kmisc/man/factor_to_char.Rd Kmisc/man/kCoef.Rd Kmisc/man/transpose.Rd Kmisc/man/awk.Rd Kmisc/man/regex.Rd Kmisc/man/split_runs.Rd Kmisc/man/mat2df.Rd Kmisc/man/labeller.Rd Kmisc/man/pad.Rd Kmisc/man/detachHTML.Rd Kmisc/man/kImg.Rd Kmisc/man/pxt.Rd Kmisc/man/counts.Rd Kmisc/man/without.Rd Kmisc/man/par.reset.Rd Kmisc/man/getObjects.Rd Kmisc/man/bwplot2.Rd Kmisc/man/awk.set.Rd Kmisc/man/u.Rd Kmisc/man/kLoad.Rd Kmisc/man/char_to_factor.Rd Kmisc/man/simp.Rd Kmisc/man/anat.Rd Kmisc/man/swap_.Rd Kmisc/man/remove_chars.Rd Kmisc/man/matches.Rd Kmisc/man/split_file.Rd Kmisc/man/make_dummy.Rd Kmisc/man/Kmisc.knit2html.Rd Kmisc/man/kSvg.Rd Kmisc/man/clean_doc.Rd Kmisc/man/makeHTMLTable.Rd Kmisc/man/value_matching.Rd Kmisc/man/update_date.Rd Kmisc/man/sys.Rd Kmisc/man/cat.cb.Rd Kmisc/man/Kmisc.Rd Kmisc/man/chunk.Rd Kmisc/man/size.Rd Kmisc/man/list2df.Rd Kmisc/man/hImg.Rd Kmisc/man/remove_digits.Rd Kmisc/man/lu.Rd Kmisc/man/str_slice.Rd Kmisc/man/read.Rd Kmisc/man/wrap.Rd Kmisc/man/pp_plot.Rd Kmisc/man/unmelt.Rd Kmisc/man/read.cb.Rd Kmisc/man/dapply.Rd Kmisc/man/cd.Rd Kmisc/man/kMerge.Rd Kmisc/man/str_collapse.Rd Kmisc/man/remove_na.Rd Kmisc/man/str_sort.Rd Kmisc/man/apply.Rd Kmisc/man/in_interval.Rd Kmisc/man/kTable.Rd Kmisc/man/duplicate.Rd Kmisc/man/kSave.Rd Kmisc/man/htmlTable.Rd Kmisc/man/manhattan_plot.Rd Kmisc/man/html.Rd Kmisc/man/tree.Rd Kmisc/man/str_rev.Rd Kmisc/man/extract.Rd Kmisc/man/rcpp_tapply_generator.Rd Kmisc/man/factor_.Rd Kmisc/man/write.cb.Rd Kmisc/man/print.kHTML.Rd Kmisc/man/is.sorted.Rd Kmisc/man/extract_rows_from_file.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.