Skip to content

Instantly share code, notes, and snippets.

View schifferl's full-sized avatar

Lucas Schiffer schifferl

View GitHub Profile

Keybase proof

I hereby claim:

  • I am schifferl on github.
  • I am schifferl (https://keybase.io/schifferl) on keybase.
  • I have a public key whose fingerprint is 426C 6B00 219D 8DCE 50F6 C715 9B83 8C6E 41C6 FC0C

To claim this, I am signing this object:

@schifferl
schifferl / behaviors.R
Created October 8, 2018 00:58
subsetting/extract behaviors in R
library(magrittr)
ten_letters <- LETTERS[1:10]
data_frame <- data.frame(ten_letters, stringsAsFactors = FALSE)
data_frame$ten
data_frame["ten"]
data_frame[["ten"]]
data_frame["ten_letters"]
data_frame[["ten_letters"]]
library(magrittr)
file_url <-
"https://bioconductor.org/checkResults/3.12/bioc-LATEST/STATUS_DB.txt"
temp_file <-
base::tempfile()
utils::download.file(file_url, temp_file)