This file contains hidden or 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
# reading in data | |
NEI <- readRDS("summarySCC_PM25.rds") | |
SCC <- readRDS("Source_Classification_Code.rds") | |
# load packages | |
library(tidyverse) | |
# convert to proper class | |
SCC$SCC <- as.character(SCC$SCC) | |
SCC$EI.Sector <- as.character(SCC$EI.Sector) |
This file contains hidden or 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
# read in data | |
NEI <- readRDS("summarySCC_PM25.rds") | |
SCC <- readRDS("Source_Classification_Code.rds") | |
# load packages | |
library(tidyverse) | |
# convert to proper class | |
SCC$SCC <- as.character(SCC$SCC) | |
SCC$EI.Sector <- as.character(SCC$EI.Sector) |
This file contains hidden or 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
library(pitchRx) | |
library(tidyverse) | |
data <- scrape(start = "2011-04-04", end = "2011-06-01") | |
pitches <- data[["pitch"]] | |
ab <- data[["atbat"]] | |
newDat <- merge(pitches, ab, by = c("num", "gameday_link")) | |
newDat <- newDat[1:95] |
This file contains hidden or 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
low = 0 | |
high = 100 | |
guess = (low + high) // 2 | |
ans = "" | |
userInput = input('Please think of a number between 0 and 100!') | |
while True: | |
print('Is Your secret number ' + str(guess) + '?') | |
ans = input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicate I guessed correctly. ") | |
if ans == 'c': |
OlderNewer