-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Following code will not print DT in the first attempt.
library(data.table)
library(jsonlite)
lot.dict.new <- setkeyv(setDT(fromJSON("https://api.hitbtc.com/api/1/public/symbols")[["symbols"]]),"symbol")[,c("step","lot","takeLiquidityRate","provideLiquidityRate") := lapply(.SD, as.numeric), .SDcols=c("step","lot","takeLiquidityRate","provideLiquidityRate")]
lot.dict.new # there is no print here
lot.dict.new # it works when trying for a second timeit is reproducible on my machine:
R version 3.1.2 (2014-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
data.table 1.9.5 as of 2014-11-02