我试图导入日志文件系统的数据文件。数据在json中收集并以txt下载。这是一个字符串示例:
{" index" :{}} {" time":1463687400," _dominio":" SAG"," _ambiente": " PROD"," numChars":12029395," numLogs":598," numLines":89597, " numWords":1025832," numDistinctWords":1356}
如何在R中解析此文件?
答案 0 :(得分:0)
我们可以使用fromJSON
jsonlite
library(jsonlite)
fromJSON(str1)