General helper functions for dealing with \R objects/data types

add_columns-methods | Add columns to a 'data.frame' or 'matrix' |

add_repository | point R to an additional package repository |

alleq | Are all values equal? |

binary.swap | swap the 1's and 0's around |

cat.matrix | Print a matrix to stdout. |

cbind.list | column bind the elements in a list together. |

cbind.smart | A smarter cbind |

choose.pairs | all pairwise combinations from n |

choose.trios | all unique combinations of 3 elements from n |

clean.tempdir | Function to delete all of the files in the tempdir. |

cm2inch | Convert centimetres to inches |

colapply | apply FUN to columns |

colclasses | Get/set the column classes of matrix-like data |

collapse.rows | collapse rows |

collate | collate data together |

colMax | column-wise maximum |

colMin | column-wise minimum |

colSD | Standard deviation of each column |

column2rownames | move columns/rows to col/rownames & back again |

count.na | count the number of NA's |

count.null | count the number of NULL's |

crossplatform.unzip | Unzip a zip archive file Unzip a zip archive file,... |

debug2 | Debug a function, controlled by a boolean |

density_tri | density triangles |

dir.Rdata | dir listing of R data objects |

dir.remove | Remove directories that are not empty. |

dir.same | Are 2 directories the same? |

dir.size | directory size This determines the size of a directory by... |

dir.sort | sort files in a directory numerically |

dRange | What is the delta-range, ie the distance between min and max? |

duplicate.indices | For all of the duplicates in x, return the indices for each... |

even | Check whether a vector or matrix of numbers are even. |

file.gunzip | gunzip a file. |

file.gzip | gzip a file. |

file.isgzip | Is the file a gzip file? |

file.issymlink | is the file a symbolic link? |

file.move | move files into a directory |

file.numlines | number of lines in a txt file |

ftpdir | directory listing of an FTP directory. |

get.char | get a specific character from a word |

get.full.path | Expand a file path to an absolute path |

has.names | does the object have names? |

interleave.columns | interleave the columns from multiple tables |

intersectN | Intersection of multiple vectors This function extends... |

is.alnum | is alphanumeric? |

is.alpha | is alphabetical? |

is.dir | Is the given path a file or directory? |

is.int | Checks which elements of a vector are integers. |

isMac | isMac |

is.matrix.like | is x a 'matrix' or 'data.frame'? |

is.sorted | Test if an Object is Sorted |

is.unique | are the elements in x all unique? |

is.url | Which entries are URL's. |

isWindows | isWindows |

keyval2hashtable | Convert a vector of keys and values to a hashtable Take a... |

lbind | Bind any number of lists together Bind the elements within N... |

lgrep | grep for a pattern in a list of values. |

list2adjmat | Convert a list to an adjacency matrix |

list2df | Convert list of vectors to data.frame |

list2RscriptArgs | convert a named list of name=value pairs into properly quoted... |

load.dir | load.dir |

lookUp | generic key lookUp Generic function to look up keys in a... |

merge_tsv | merge tsv files |

mgrep | multi-grep methods |

midpoints | Determine the midpoints between a vector of numbers |

mjcbase-package | mjcbase |

mkdir | Manipulaton of Directories and File Permissions |

move.column | Reorder a column, or block of columns from within a... |

na.rm | remove the 'NA's from a vector |

odd | Check whether a vector or matrix of numbers are odd. |

one2many | convert one2many and many2one |

pad | Pad a number with leading zeros |

padNA | make a ragged list uniform in length |

paste0 | Concatenate strings |

pbcopy | Write a vector to the OSX clipboard |

pbpaste | Paste the OSX clipboard into a character vector |

peek | A function to show first 5 rows and col of data |

percentile | percentile & quartile |

perl.oneliner | execute a perl one liner |

pkgrep | find matching package names using grep |

prettyNum | prettyNum for matrices and tables |

print.venn | A printed representation of a 2D venn diagram |

pwd | Wrapper for getwd() |

qn | Quick quit. |

range_merge | merge a set of numbers into a range. |

rbind.list | rbind the elements in a list together. |

rbind.smart | A smarter rbind 'rbind' 2 matrix-like-objects even if they... |

readLine | readLine, and split on character |

read.table.fast | read.delim fast, on a subset of columns |

read.table.wide | Read a very wide table (ie many columns) into a data.frame |

recycle | Variable recycler |

rename.column | Rename column(s) within a table. |

replace.cells | replace the values in a table |

rep_list | repeat x N times to make an N element list |

rm.na | remove NA's from an object |

rot | Rotate values |

rowapply | apply FUN to rows |

rowMAD | Apply the mad function to each row of a matrix-like object |

rowMax | row-wise maximum |

rowMedian | What is the median in each row? |

rowMin | row-wise minimum |

rowPaste | Convert rows in a table to a character vector, where each... |

rowRange | What is the range of values in each row? |

rowSD | Standard deviation of each row |

rowVar | Variance of each row |

scale2 | Function to linearly scale a vector of numbers (x) to be... |

scan.text | scan.text |

setwidth | set the width of the current display set the width of the... |

skipLine | skipLine |

sort-methods | sorting or ordering more complex objects |

sortnum | sort numerically |

sort_pattern | pattern sorting a vector |

sourcedir | source all the .R files in a directory |

sourcelog | Source all of the functions that are in a log file |

split_into_batches | split x into N batches each of a specific size. |

squashWarnings | Catch any warnings & convert them to messages |

stratify-methods | stratify |

strcat | concatenate a bunch of strings |

str_ends | From a character vector of length >= 1, determine the first... |

strip.fileextension | Strip the file extension Strip the three letter file... |

strlen | Length of each string in a vector. |

subdirs.same | Are the subdirs that are named to same actually identical |

sunique | sort and uniquify a vector |

suppressWarnings2 | Warning messages |

symmetricise | Make a pair symmetrical Convert a vector of 2 values into... |

Sys.grepline | Which lines do various patterns exist on? |

table2hashtable | Convert a table to a hashtable Take a table with a... |

threshold.distance.matrix | threshold a distance matrix |

time_diff | Determines the difference between two time points generated... |

to.alnum | convert to alphanumeric |

to.char.array | convert a word into a character vector |

tocsv | Convert a vector x into a comma separated character(1). |

trim | Trim the whitespace from front and back of the words in a... |

trunc | truncate the values in a vector |

twodmatch | Extension of '%in%' for value matching in 1D or 2D objects |

ucounts | How many times does each term in x appear? |

uncsv | uncsv |

unduplicate | unduplicate elements in a vector |

unionN | Union of 2 or more vectors |

vecmerge | Merge a vector and a data.frame |

vector2hashtable | Convert a vector to a hashtable Take a vector of words, and... |

which.2D | which.2D |

whichN | whichN |

which.percentile | For a numeric vector x, return which percentile each data... |

which.quartile | For a numeric vector x, return which quartile each data point... |

write.delim | Write a matrix-like object as a tab-delimited txt file. |

write.delim.list | Export a list of single tables into the same tab delimited... |

writeLines.list | Write a list of vectors out to a file |

write.venn.2D.xls | Write a 2D Venn diagram to an Excel file |

write.venn.3D.xls | Write a 3D Venn diagram to an Excel file. Compare 3 vectors,... |

zeros-ones | Matlab wrappers |

zip | Create a zip archive. |

zipdir | zip the contents of a directory. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.