I am trying to subset some information imported from a json into power bi.
I tried the code in RStudio and it worked, but when I imported this code in Power BI, it didn't show any results.
I converted the data into a data.frame, but that didn't work.
can someone please help me.
the code I used is:
I tried the code in RStudio and it worked, but when I imported this code in Power BI, it didn't show any results.
I converted the data into a data.frame, but that didn't work.
can someone please help me.
the code I used is:
Code:
require(curl)
library(jsonlite)
//Here goes the json import, which I can't give because its my organizations account
jsond<-fromJSON()
datos<-data.frame(jsond)
yr<-data.frame(jsond$record$yr)
library(plyr)
filter<-jsond$record$yr==2015
d<-datos[filter,]
d