Я пытаюсь получить простую таблицу частот моего набора данных для моего исследования. Однако всякий раз, когда я пытаюсь подвести итоги (corx), я получаю таблицу, но теперь я хочу преобразовать ее в код LaTeX. Когда я пытаюсь использовать для этого пакет stargazer, я получаю сообщение об ошибке ниже. У кого-нибудь есть идея, почему это так? И как это решить? (corx - это мое имя набора данных)
> stargazer(summary(corx))
Error in names(x) <- value :
'names' attribute [16] must be the same length as the vector [3]
Это то, что я получаю, когда ставлю перед ним dput (ошибка остается прежней):
dput(summary(corx))
structure(c("Min. :0.00000 ", "1st Qu.:0.00000 ", "Median :0.00000 ",
"Mean :0.07159 ", "3rd Qu.:0.00000 ", "Max. :1.00000 ",
"Min. :0.0000 ", "1st Qu.:0.0000 ", "Median :0.0000 ", "Mean :0.4827 ",
"3rd Qu.:1.0000 ", "Max. :1.0000 ", "Min. : 1.00 ", "1st Qu.: 7.00 ",
"Median :11.00 ", "Mean :12.15 ", "3rd Qu.:16.00 ", "Max. :37.00 ",
"Min. : 13 ", "1st Qu.: 3706 ", "Median : 5889 ", "Mean : 6715 ",
"3rd Qu.: 8874 ", "Max. :20654 ", "Min. :0.0000 ", "1st Qu.:0.0000 ",
"Median :1.0000 ", "Mean :0.7033 ", "3rd Qu.:1.0000 ", "Max. :1.0000 ",
"Min. :-7.266 ", "1st Qu.:30.918 ", "Median :36.279 ", "Mean :36.558 ",
"3rd Qu.:42.510 ", "Max. :56.812 ", "Min. : 8.52 ", "1st Qu.:12.61 ",
"Median :14.00 ", "Mean :14.16 ", "3rd Qu.:15.43 ", "Max. :22.35 ",
"Min. :10.46 ", "1st Qu.:15.70 ", "Median :17.17 ", "Mean :17.40 ",
"3rd Qu.:18.75 ", "Max. :26.62 ", "Min. :1.110 ", "1st Qu.:1.670 ",
"Median :1.729 ", "Mean :1.721 ", "3rd Qu.:1.782 ", "Max. :1.967 ",
"Min. :0.000000 ", "1st Qu.:0.008996 ", "Median :0.011823 ",
"Mean :0.012017 ", "3rd Qu.:0.014572 ", "Max. :0.025445 ",
"Min. :0.00000 ", "1st Qu.:0.05037 ", "Median :0.05725 ",
"Mean :0.05752 ", "3rd Qu.:0.06463 ", "Max. :0.11109 ",
"Min. :0.00000 ", "1st Qu.:0.01022 ", "Median :0.01298 ",
"Mean :0.01334 ", "3rd Qu.:0.01620 ", "Max. :0.02673 ",
"Min. :0.00000 ", "1st Qu.:0.07468 ", "Median :0.08196 ",
"Mean :0.08193 ", "3rd Qu.:0.09051 ", "Max. :0.11476 ",
"Min. :0.0000 ", "1st Qu.:0.0000 ", "Median :0.0000 ", "Mean :0.2915 ",
"3rd Qu.:1.0000 ", "Max. :1.0000 ", "Min. :0.0000000 Min. :0.0000000 Min. :0.0000000 Min. :0.0000000 ",
"1st Qu.:0.0000000 1st Qu.:0.0000000 1st Qu.:0.0000000 1st Qu.:0.0000000 ",
"Median :0.0000000 Median :0.0000000 Median :0.0000000 Median :0.0000000 ",
"Mean :0.3107011 Mean :0.3173432 Mean :0.1859779 Mean :0.1859779 ",
"3rd Qu.:1.0000000 3rd Qu.:1.0000000 3rd Qu.:0.0000000 3rd Qu.:0.0000000 ",
"Max. :1.0000000 Max. :1.0000000 Max. :1.0000000 Max. :1.0000000 ",
"Min. :0.00000 ", "1st Qu.:0.05037 ", "Median :0.05725 ",
"Mean :0.05747 ", "3rd Qu.:0.06463 ", "Max. :0.09181 ",
"Min. :0.000 ", "1st Qu.:1.946 ", "Median :2.398 ", "Mean :2.307 ",
"3rd Qu.:2.773 ", "Max. :3.611 "), .Dim = c(6L, 17L), .Dimnames = list(
c("", "", "", "", "", ""), c(" SCAM_DUMMY", "PRE_ICO_DUMMY",
" TEAM_COUNT", "Whitepaper_Length", "SOFTHARDCAPS_DUMMY",
" Flesch", "Flesch.Kincaid", " FOG", "meanWordSyllables",
" LMPOS_RATIO", " GI_RATIO", " HE_RATIO", "DICTION_CERTAINTY_RATIO",
"HinesTaxHaven", "QUARTER_DUMMY.QUARTER_DUMMY))1 QUARTER_DUMMY.QUARTER_DUMMY))2 QUARTER_DUMMY.QUARTER_DUMMY))3 QUARTER_DUMMY.QUARTER_DUMMY))4",
" GIPOS_Ratio", "log_TeamCount")), class = "table")