微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

(function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : 参数暗示不同的行数:1, 3, 4

如何解决(function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : 参数暗示不同的行数:1, 3, 4

我正在尝试从 json 文件创建数据框。

我尝试了以下代码: > 头(名称(data_jstor))

[1] "creator" "datePublished" "docType" "fullText"
[5] "id" "identifier"

> names(data_jstor)

[1] "creator" "datePublished" "docType" "fullText"
[5] "id" "identifier" "isPartOf" "issueNumber"
[9] "language" "outputFormat" "pageCount" "pageEnd"
[13] "pageStart" "pagination" "provider" "publicationYear" [17] "publisher" "sourceCategory" "tdmCategory" "title"
[21] "url" "volumeNumber" "wordCount" "unigramCount"
[25] "bigramCount" "trigramCount"
    > head(na.action(data_jstor))
NULL
> str(data_jstor)

List of 26 $ creator : chr "Fred. Perry Powers" $ datePublished : chr "1900-08-01" $ docType : chr "article" $ fullText : chr [1:8] "552 QUARTERLY JOURNAL OF ECONOMICS THE STOCK OF GOLD IN THE COUNTRY. The amount of gold in the country,as comp"| truncated "NOTES AND MEMORANDA 553 If we eliminate the state banks,we find that the percent- ages of gold and of legal te"| truncated "554 QUARTERLY JOURNAL OF ECONOMICS three years the percentage which each kind of money consti- tuted in the tot"| truncated "NOTES AND MEMORANDA 555 Treasury stated to be in the hands of the people,and the per- centages deposited in 5,"| truncated ... $ id : chr "http://www.jstor.org/stable/1883426" $ identifier :List of 5 ..$ :List of 2

data_jstor_df<-as.data.frame(data_jstor)

但是我有一条错误消息:Error in (function (...,row.names = NULL,check.rows = FALSE,check.names = TRUE,: 参数意味着不同的行数:1,3,4

有人可以帮我吗?

谢谢

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。