Learn R Programming

⚠️There's a newer version (0.5.0) of this package.Take me there.

Kmisc (version 0.2.0)

Miscellaneous functions intended to improve the R coding experience

Description

A collection of functions for common data reshaping operations, as well as functions for table and plot generation for R Markdown documents.

Copy Link

Version

Install

install.packages('Kmisc')

Monthly Downloads

88

Version

0.2.0

License

GPL (>= 2)

Maintainer

Kevin Ushey

Last Published

December 24th, 2012

Functions in Kmisc (0.2.0)

Kmisc

Kmisc
kCoef

Nicely Formatted Model Coefficient Output
getObjects

Get all Objects in Environment
kAnova

Nicely Formatted ANOVA Table
kFactorToChar

Converts Factors to Characters in Data Frame
p1t

Make 1D HTML Table
kSvg

HTML - Source an SVG file
kFivenum

Fivenum with Names
dapply

Apply a Function over a List
kColor

Generate Gradient from Continuous Variable
detachHTML

Detach Common, Non-Masking HTML Functions
kStackList

Stack a List of DataFrame-like Objects
extract.re

Extract Variable from a Data Frame / List, with Regular Expressions
%nin%

Inverse Value Matching
lg

length( grep( ... ) )
read.cb

Read Tabular Data from the Clipboard
makeHTMLTable

Make HTML Table from R 'table-like' Object
u

Unique elements in a vector
hSvg

Print SVG to File and Return HTML
re.exists

Check whether Regular Expression was Found
without

Remove Variables from a List / Data Frame
print.kHTML

Print kHTML Objects
kImg

HTML - Source an Image
str_rev

Reverse a Vector of Strings
write.cb

Write Tabular Data to the Clipboard
kSetwd

Set Working Directory
extract

Extract Variables from a List / Data Frame
str_slice

Slice a Vector at Consecutive Indices
kmeans_plot

k-means Diagnostic Plot
kMakeDummy

Make Dummy Variables from Factor
lu

Number of non-NA unique elements in a vector
kMerge

Merge (Left Join) with Index Retainment
in.interval

Determine if Value Lies within Interval
kCharToFactor

Converts Characters to Factors in Data Frame
pxt

Make 2x2 HTML Contingency Table
kLoad

Load and Assign an R Object
attachHTML

Attach Common, Non-Masking HTML Functions
makeHTMLTag

Make HTML Elements
scan.cb

Read Data from the Clipboard
without.re

Remove Variables from a List / Data Frame, with Regular Expressions
kStripExtension

Strip File Extension
clean_doc

Clean Documentation in Current Package
html

HTML Tags
kSplit

Split a Vector of Strings Following Regular Structure
kReplace

Replace Elements in a Vector
kSave

Write out and Save a Tabular File
us

unlist( strsplit( ... ) )
hImg

Print Plot to File and Return HTML
kTable

Make Nicely Formatted Tables
ngrep

Inverse grep