This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove outliers | |
=============== | |
The goal is to remove outliers (by variable) by marking them as NA and keeping a record of which were outliers. | |
# Data | |
First, lets create a sample data set | |
```{r data} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For knitr bootstrap | |
## More info at http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering | |
options(rstudio.markdownToHTML = | |
function(inputFile, outputFile) { | |
require(knitrBootstrap) | |
knit_bootstrap_md(input=inputFile, output=outputFile, code_style="Brown Paper", chooser=c("boot", "code"), show_code=FALSE) | |
} | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove outliers | |
=============== | |
The goal is to remove outliers (by variable) by marking them as NA and keeping a record of which were outliers. | |
# Data | |
First, lets create a sample data set | |
```{r data} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For knitr bootstrap | |
## More info at http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering | |
options(rstudio.markdownToHTML = | |
function(inputFile, outputFile) { | |
library(knitrBootstrap) | |
knit_bootstrap_md(input=inputFile, output=outputFile, code_style="Brown Paper", chooser=c("boot", "code"), show_code=FALSE) | |
} | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For knitr bootstrap | |
## More info at http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering | |
options(rstudio.markdownToHTML = | |
function(inputFile, outputFile) { | |
library(knitrBootstrap) | |
knit_bootstrap_md(input=inputFile, output=outputFile, code_style="Brown Paper", chooser=c("boot", "code"), show_code=FALSE) | |
} | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For knitr bootstrap | |
## More info at http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering | |
options(rstudio.markdownToHTML = | |
function(inputFile, outputFile) { | |
library(knitrBootstrap) | |
knit_bootstrap_md(input=inputFile, output=outputFile, code_style="Brown Paper", chooser=c("boot", "code"), show_code=FALSE) | |
} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quantiles from Rle's with long lengths | |
====================================== | |
```{r echo=FALSE} | |
library(knitr) | |
render_html() | |
``` | |
The goal is to calculate quantiles on aggregated long Rle's. The information is split by chr, and combining it naively fails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: CHANGEME | |
tags: | |
- CHANGEME | |
categories: | |
- CHANGEME | |
--- | |
{% include JB/setup %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh" | |
# Source some support functions we need. | |
. "${TM_SUPPORT_PATH}/lib/html.sh" | |
. "${TM_SUPPORT_PATH}/lib/webpreview.sh" | |
# Get the viewer program. Any program (that works with open -a <name>) can be used, | |
# except 'html' which is reserved to mean the internal HTML window. This is also the | |
# default option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% highlight r %} | |
## CHUNK | |
{% endhighlight %} |
OlderNewer