Skip to content

Instantly share code, notes, and snippets.

View achekroud's full-sized avatar

Adam Chekroud achekroud

View GitHub Profile
@achekroud
achekroud / anonymize.R
Created January 18, 2018 16:47
anonymize.R
# Function for hashing a column
anonymize <- function(x, algo="sha256"){
unq_hashes <- vapply(unique(x),
function(object) digest::digest(object, algo=algo), FUN.VALUE="", USE.NAMES=TRUE)
unname(unq_hashes[x])
}
@achekroud
achekroud / for_Micah.R
Last active January 10, 2018 18:44
sort diagnoses in alphabetical order for each patient
library(tidyverse)
tryThis <- data.frame(x = c("A, B ",
"A",
"B",
"C, A, B",
"C, B",
"C",
"A, B"))
remove_spaces <- function(x){ gsub(x, pattern = " ", replacement = "")}

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets