'I'm trying to run this program but I keep getting this error
# Cycle through files
for (i in 1:length(filelist)){
currentjsonimport = fromJSON(file = filelist[i])
tmp = NULL
for(j in 1:length(currentjsonimport$voiceMemoData)){
## import voice memo data
tmp = t(currentjsonimport$voiceMemoData[[j]][[1]])
matrixtmp <- as.matrix(tmp)
coords <- rbind(coords, matrixtmp)
}
}
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘fromJSON’ for signature ‘"missing", "missing"’
Solution 1:[1]
You probably don't have the package installed. Try running this first -
install.packages("rjson")
library(rjson)
Hopefully this works!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Phil |
