i trying convert/parse json string in r, having trouble.
i have installed both rjson , rjsonio packages.
library(rjson) install.packages("rjson") require(rjson)
example row of dataset:
dataset <- data.frame(id = c(1), signup_get = {\\1358183137\\:{\\self\\:\\/index.php\\,\\pv\\:\\2\\},\\1358183315\\:{\\self\\:\\/sail-inventory-tracking.php\\},\\1358183434\\:{\\self\\:\\/pricing.php\\},\\1358183473\\:{\\self\\:\\/tour-keep-track.php\\},\\1358183486\\:{\\self\\:\\/tour-save-time.php\\},\\1358183503\\:{\\self\\:\\/tour-sell-more.php\\},\\1358183600\\:{\\self\\:\\/tour-integrations.php\\},\\1358183631\\:{\\self\\:\\/pricing.php\\},\\1358184267\\:{\\self\\:\\/signup.php\\,\\get\\:{\\p\\:\\1\\}},\\1358184409\\:{\\self\\:\\/pricing.php\\},\\1358184436\\:{\\self\\:\\/pricing.php\\},\\1358184485\\:{\\self\\:\\/about.php\\},\\1358184497\\:{\\self\\:\\/pricing.php\\},\\1358184574\\:{\\self\\:\\/pricing.php\\},\\1358184595\\:{\\self\\:\\/about.php\\},\\1358184606\\:{\\self\\:\\/tour-keep-track.php\\},\\1358184612\\:{\\self\\:\\/tour-sell-more.php\\}} dataset$signup_get <- tostring(dataset$signup_get)
i have tried call fromjson(data$signup_get, method = "c", unexpected.escape = "error")
error "error in function (classes, fdef, mtable): unable find inherited method function "fromjson",
some of primary goals answer questions such as:
- what last entry (most recent) in json string?
- how time passed between first time period , last in json string? (time listed epoch time)
- how many pages visited
i think error might in how importing data. suggestions great.
Comments
Post a Comment