-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding model data analysis file also added data for the model
- Loading branch information
Showing
6 changed files
with
67 additions
and
707 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
stop() | ||
|
||
##============================================================================== | ||
## INITIALIZE | ||
##============================================================================== | ||
## Remove all objects; perform garbage collection | ||
rm(list=ls()) | ||
gc(reset=TRUE) | ||
## Check for dependencies | ||
if(!"geneorama" %in% rownames(installed.packages())){ | ||
if(!"devtools" %in% rownames(installed.packages())){install.packages('devtools')} | ||
devtools::install_github('geneorama/geneorama')} | ||
## Load libraries | ||
geneorama::detach_nonstandard_packages() | ||
# geneorama::loadinstall_libraries(c("geneorama", "data.table")) | ||
geneorama::loadinstall_libraries(c("data.table", "MASS")) | ||
geneorama::sourceDir("CODE/functions/") | ||
|
||
##============================================================================== | ||
## DEFINE GLOBAL VARIABLES / MANUAL CODE | ||
##============================================================================== | ||
DataDir <- "DATA/20141110" | ||
|
||
##============================================================================== | ||
## LOAD CACHED RDS FILES | ||
##============================================================================== | ||
dat <- readRDS(file.path(DataDir, "dat_with_inspector.Rds")) | ||
|
||
|
||
##============================================================================== | ||
## Some plots | ||
##============================================================================== | ||
plot(Inspection_ID~Inspection_Date, dat) | ||
plot(N~Inspection_Date, dat[,.N,keyby=Inspection_Date], type='o') | ||
|
||
dat[,hist(heat_sanitation)] | ||
dat[,hist(heat_garbage)] | ||
dat[,hist(heat_burglary)] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.