Useful Functions Created by Myself

angle | Calculates angle of 2-dimensional vectors. |

databar | Plot databars for matrix visualization |

debugText | Prints variables or expressions for debug. |

dir.create.deep | Checks and creates a unknown directory when it is not exist. |

euclidean | Calculates euclidean distance of vectors. |

eval_timer | Measure the elapsed time of 'eval' and returns the result. |

grapes-.-grapes | magrittr operator with giving nothing to first argment |

grapes-T.-grapes | magrittr tee operator with giving nothing to first argment |

image2 | Improved 'image' function for matrix visualization |

is.prob | Asserts 'x' whether probabic number or not. |

is.range | Asserts 'x' whether numeric range or not. |

is.todayDirectory | Checks if current directory is today directory or not. |

keywait | Waits until enter key is pressd. |

matlist | Converts lists or vectors that nested by list to matrix. |

max2nd | Calculate second highest value in vector. |

memory_summary | Summarize object size in environment. |

min2nd | Calculate second lowest value in vector. |

order2 | 'order' function regards a duplication value as the same... |

order.col | Orders matrix in each rows. |

overwriteEllipsis | Overwrite some fixed arguments to the arguments '...' given... |

padding.matrix | Padding (expanding rows and cols) for 'matrix'. |

passign | assign function for pipe stream |

plotLines | Plot matlix as a set of lines |

preparePrintify | Prepare the process that enables to print out your R-notebook... |

print.noattr | Print variable without inconsiderable attributes. |

quadrature | Integrates discrete vector by quadrature. |

rank.matrix | Calculates rank of each elements of matrix. |

replaceNA | Replaces NA from matrix with maintaining the dimension. |

resetMfrow | Reset the graphics parameter mfrow as defalt. |

rowMinus | Calculates 'X - a' with row first. |

rowNorm | Calculates norm for each row of 'X'. |

rowTimes | Calculates 'X \* a' with row first. |

runifN | Generates random natural numbers. |

savedDir | Retruns or Sets default save directory. |

saveEnvironment | Save global environment. |

saveggpng | Save plot generated by ggplot2. |

savepng | Saves plot to today directory. |

savepngTitle | Saves plot with adding title on the figure. |

setMargin | Changes margins for plot |

setMarginZero | Changes margins to zeros |

setwdProject | Sets current directory to project directory. |

softwriteEllipsis | Overwrite some desirable arguments to '...' softly. |

sort_col | Sorts matrix in each rows. |

subwd | Creates sub directory for saving a number of images. |

todaywd | Sets working directory to today directory. |

vnorm | Calculates norm of 'x'. |

which.max.ind | Searches index of maximum element from matrix. |

which.min.ind | Searches index of minimum element from matrix. |

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.