Skip to content

Commit

Permalink
Update evaluations.R
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeaudette committed Jan 23, 2024
1 parent b0f0186 commit 6c95c9d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions misc/evaluations.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,27 @@ library(sharpshootR)
library(knitr)

# source local functions
source('local-functions.R')
# source('local-functions.R')

# re-load cached data
# getAndCacheData()

# load cached data
load('cached-NASIS-data.Rda')
data("NASIS_evaluations")
data("NASIS_properties")
data("NASIS_property_def")

.idx <- grep('isotic', NASIS_evaluations$evaldesc, ignore.case = TRUE)
NASIS_evaluations[.idx, ]


.idx <- grep('isotic', NASIS_property_def$prop, ignore.case = TRUE)
.pid <- NASIS_property_def$propiid[.idx]

NASIS_properties[which(NASIS_properties$propiid %in% .pid), ]


evals <- NASIS_evaluations

# how many of each
knitr::kable(t(sort(prop.table(table(evals$evaluationtype)), decreasing = TRUE)), digits = 3)
Expand Down

0 comments on commit 6c95c9d

Please sign in to comment.