首页 > 解决方案 > dput(head()) 的问题以便做一个详细的例子

问题描述

我试图将我的数据集样本附加到订单中,dput(head())但我在 R 环境的控制台点中得到的结果可能并不好,也不正确。我将在此处附上我得到的结果,以便进行查看并提供建议/意见。

数据:

dput(head(Data))

 0.272727280855179, NA, 0.227272734045982), label = "Fraction of years under autocracy, 1985--2006", format.stata = "%9.0g"), 
    democ_1985_2006_shr_p4_v17 = structure(c(NA, NA, 0, 0, NA, 
    0.227272734045982), label = "Fraction of years under democracy, 1985--2006", format.stata = "%9.0g"), 
    gpro_AMAR_all_2001_amar = structure(c(NA, NA, 0.918200003914535, 
    0.539999989792705, NA, 0.0299999993294477), label = "Population share of AMAR groups", format.stata = "%9.0g"), 
    intracgrpyr_shr_all_85_06_amar = structure(c(NA, NA, 0.287878781557083, 
    0.206896558403969, NA, 0), label = "Share of group-years with intracommunal conflict, 1985-2006", format.stata = "%8.0g"), 
    numgrp_all_2001_amar = structure(c(NA, NA, 6, 4, NA, 1), label = "Number of AMAR groups", format.stata = "%9.0g"), 
    anyconf15_brecke = structure(c(NA, NA, 1, 0, NA, 1), label = "Any onset of conflict, 1400-1499", format.stata = "%9.0g"), 
    anyconf16_brecke = structure(c(NA, NA, 1, 1, NA, 0), label = "Any onset of conflict, 1500-1599", format.stata = "%9.0g"), 
    anyconf17_brecke = structure(c(NA, NA, 0, 1, NA, 0), label = "Any onset of conflict, 1600-1499", format.stata = "%9.0g"), 
    anyconf18_brecke = structure(c(NA, NA, 1, 1, NA, 0), label = "Any onset of conflict, 1700-1799", format.stata = "%9.0g"), 
    anyconfall_brecke = structure(c(NA, NA, 1, 1, NA, 1), label = "Any onset of conflict, 1400-1799", format.stata = "%9.0g"), 
    wvs_trust = structure(c(NA, NA, NA, NA, NA, 0.256479471921921
    ), label = "Prevalence of interpersonal trust", format.stata = "%8.0g"), 
    wvs_leftright_sd = structure(c(NA, NA, NA, NA, NA, 2.39566731452942
    ), label = "Variation in political attitudes", format.stata = "%8.0g"), 
    cenlat = structure(c(NA, NA, 33, -12.5, NA, 41), label = "Geodesic centroid latitude", format.stata = "%8.0g"), 
    cenlong = structure(c(NA, NA, 66, 18.5, NA, 20), label = "Geodesic centroid longitude", format.stata = "%8.0g"), 
    mdist_addis_aa = structure(c(NA, NA, 6.00255107879639, 3.51156735420227, 
    NA, 4.46640014648438), label = "Ancestry-adjusted migratory distance from Addis Ababa", format.stata = "%9.0g"), 
    

这条线永远不会结束..这是我的怀疑和问题所在。

标签: r

解决方案


推荐阅读