Skip to content

Instantly share code, notes, and snippets.

View IndrajeetPatil's full-sized avatar
🎯
Focusing

Indrajeet Patil IndrajeetPatil

🎯
Focusing
View GitHub Profile
@strengejacke
strengejacke / keybindings.json
Last active August 6, 2022 16:53
keybindings for VS Code using R
[
{
"description": "R Build Docs",
"key": "ctrl+shift+d",
"command": "r.document",
"when": "resourceLangId == 'r'"
},
{
"description": "R Pipe Operator",
"key": "ctrl+shift+m",
@richarddmorey
richarddmorey / bf_one_way
Created June 23, 2019 12:41
Bayes factor for one-way table
# Prior setup
prior_concentration = 10
# null
p0 = c(0.3, 0.3, 0.4)
# fake data, null
@gadenbuie
gadenbuie / render_toc.R
Last active May 16, 2024 20:09
Generate Manual Table of Contents in (R)Markdown Documents
#' Render Table of Contents
#'
#' A simple function to extract headers from an RMarkdown or Markdown document
#' and build a table of contents. Returns a markdown list with links to the
#' headers using
#' [pandoc header identifiers](http://pandoc.org/MANUAL.html#header-identifiers).
#'
#' WARNING: This function only works with hash-tag headers.
#'
#' Because this function returns only the markdown list, the header for the