Learn R Programming

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

Kmisc (version 0.4.0-1)

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.4.0-1

License

GPL (>= 2)

Maintainer

Kevin Ushey

Last Published

April 3rd, 2013

Functions in Kmisc (0.4.0-1)

kLoad

Load and Assign an R Object
kAnova

Nicely Formatted ANOVA Table
hSvg

Print SVG to File and Return HTML
cat.cb

Write Data to the Clipboard
extract_rows.re

Extract Rows from a Data Frame / Matrix Based on Regex Matching
anat

Display the Anatomy of a Data Frame
Kmisc

Kmisc
gradient

Generate Gradient from Continuous Variable
kmeans_plot

k-means Diagnostic Plot
lg

length( grep( ... ) )
%nin%

Inverse Value Matching
.html

HTML Tags
print.kHTML

Print kHTML Objects
attachHTML

Attach Common, Non-Masking HTML Functions
in_interval

Determine if Value Lies within Interval
fgrep

Fixed/Fast Grep
bwplot2

Custom Lattice Boxplot
pp_plot

Construct a Probability-Probability Plot from a Set of P-Values
p1t

Make 1D HTML Table
str_slice2

Slice a Vector at Consecutive Indices
stack_list

Stack a List of DataFrame-like Objects
write.cb

Write Tabular Data to the Clipboard
remove_chars

Remove Alphabetic Characters from a Character Vector
grid.text2

Grid Text with a Background
makeHTMLTable

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

Merge (Left Join) with Order Retainment
is.sorted

Test if an Object is Sorted
factor_to_char

Converts Factors to Characters in an Object
hImg

Print Plot to File and Return HTML
swap

Swap Elements in a Vector
pad

Pad an Object with NAs
cd

Set Working Directory
kSave

Write out and Save a Tabular File
re.exists

Check whether Regular Expression was Found
extract

Extract Elements from a Named Object
pMerge

Merge a Data Frame 'into' Another
us

unlist( strsplit( ... ) )
lu

Number of non-NA unique elements in a vector
html

Print HTML Elements
without

Remove Elements from a Named Object
str_sort

Sort a Vector of Strings
make_dummy

Make Dummy Variables from a Factor
pxt

Make 2x2 HTML Contingency Table
scan.cb

Read Data from the Clipboard
str_rev2

Reverse a Vector of Strings (UTF-8)
u

Unique elements in a vector
ngrep

Inverse Grep
strip_extension

Strip File Extension
kCoef

Nicely Formatted Model Coefficient Output
clean_doc

Clean Documentation in Current Package
kFivenum

Fivenum with Names
dapply

Apply a Function over a List
kTable

Make Nicely Formatted Tables
makeHTMLTag

Make HTML Elements
without.re

Remove Elements from a Named Object with Regular Expressions
rcpp_apply_generator

Rcpp Apply Generator
char_to_factor

Converts Characters to Factors in an Object
getObjects

Get all Objects in Environment
kImg

HTML - Source an Image
detachHTML

Detach Common, Non-Masking HTML Functions
remove_digits

Remove Digits from a Character Vector
par.reset

Restore the 'par' settings
extract.re

Extract Elements from a Named Object with Regular Expressions
read.cb

Read Tabular Data from the Clipboard
without_rows.re

Exclude Rows from a Data Frame / Matrix Based on Regex Matching
Rcpp_gen_makevars

Reproduce Rcpp Makevars Files
update_date

Update Date in DESCRIPTION File
str_split

Split a Vector of Strings Following a Regular Structure
str_rev

Reverse a Vector of Strings
kSvg

HTML - Source an SVG file
str_slice

Slice a Vector at Consecutive Indices
split_runs

Split by Runs