Skip to content

Instantly share code, notes, and snippets.

View richgillin's full-sized avatar
💭
Ready

Rich Gillin richgillin

💭
Ready
  • RStats.IO
  • Anchorage Alaska
  • 17:36 (UTC -08:00)
View GitHub Profile
@richgillin
richgillin / vennBM.Rmd
Created November 19, 2018 20:22
Marques venn
---
title: "marques"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Assistance for A. Marques
# Stats & R G+ Community
## New data may take up to 48 hours to appear. So, 2 day lag for latest data
# member30 <- c(15292, 171)
# engage30 <- c(51,43,471)
# member30 / engage30
# Last 30 days - longest view available
## 2018-07-19
member.total <- 15292
a1 <- as.Date("1985-01-21")
a1 <- as.POSIXlt(a1)
a1$year <- a1$year+18; a1
## [1] "2003-01-21 UTC"
# with lubridate
library(lubridate)
a2 <- as_date("1985-01-21")
a_18 <- a2 + dyears(18); a_18
## [1] "2003-01-17"
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b

Keybase proof

I hereby claim:

  • I am richgillin on github.
  • I am richgillin (https://keybase.io/richgillin) on keybase.
  • I have a public key ASB0-9Ot6kJ4oh93nmB5SwOz2iCvYD5Ps0VN240M9wJhJQo

To claim this, I am signing this object:

@richgillin
richgillin / SquirrelSetup.log
Created May 21, 2017 17:11
SquirrelSetup Log
2016-11-17 11:28:46> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC
2016-11-17 11:28:46> Program: Starting install, writing to C:\Users\riotQontrol\AppData\Local\SquirrelTemp
2016-11-17 11:28:46> UpdateManager: using rootAppDirecotry: C:\Users\riotQontrol\AppData\Local\Microsoft\Teams
2016-11-17 11:28:46> Program: About to install to: C:\Users\riotQontrol\AppData\Local\Microsoft\Teams
2016-11-17 11:28:46> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\riotQontrol\AppData\Local\Microsoft\Teams\packages\.betaId'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHos
---
title: "Codebook template"
author: "Your name here"
date: "The date here"
output:
html_document:
keep_md: yes
---
## Project Description
## See https://www.gettinggeneticsdone.com/2013/07/customize-rprofile.html
## Load packages
library(BiocInstaller)
## Don't show those silly significanct stars
options(show.signif.stars=FALSE)
## Do you want to automatically convert strings to factor variables in a data.frame?
## WARNING!!! This makes your code less portable/reproducible.
source("http://www.openintro.org/stat/data/cdc.R")
# Lab 1 OpenIntro Stats
# Intro to Data
names(cdc)
length(cdc)
str(cdc)
head(cdc)
tail(cdc)
# Ex. 1
summary(cdc$weight)