0

im trying to attach a sample of my dataset with the order dput(head()) but the result i get in the Console point of the R environment might not be good and correct as it appears. I will attach here the results i get in order to take a view and provide an advice/opinion.

Data:

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"), 
    

and the lines of this never end ..thats my doubt and the problem there is.

Liam
  • 9
  • 1
  • There is a limit on the length of cosole output in RStudio: 4095 bytes. See [here](https://cran.r-project.org/doc/manuals/R-intro.html#R-commands_003b-case-sensitivity-etc). Could that be the issue? If so, you can bypass it by `sink`ing the output to a file. I'm not sure how stackoverflow will react though! As an aside, a question that requires such a large `dput` is unlikely to be *minimal*. – Limey Oct 09 '21 at 08:19
  • ok thank you mis/sir @Limey – Liam Oct 09 '21 at 08:21
  • If the object is a list and its members are big then `head(object)` will be big. Try, say, `new_obj – Rui Barradas Oct 09 '21 at 08:42
  • 1
    @RuiBarradas sir/mis i tried your advice and i think it is working perfectly sir/mis !!! Thanks a lot for your help !!! – Liam Oct 09 '21 at 15:12

0 Answers0