12 lines
241 B
R
12 lines
241 B
R
library(jsonlite)
|
|
library(data.table)
|
|
library(ggplot2)
|
|
|
|
init <- function() {
|
|
j <<- fromJSON("cpubenchmark.json")
|
|
d <<- j$data
|
|
setDT(d)
|
|
d[, price := as.numeric(gsub("[\\$,]", "", price))]
|
|
dd <<- \() d[ grepl(s, name), ]
|
|
}
|