<div dir="ltr"><div>After a round of debugging, I think the issue is in this line:</div><div><br></div><div>col.names = names(in.data)[seq(1, (length(in.data) - <br> geo.length), 2)]</div><div><br></div><div><pre tabindex="0" class="gmail-GD15MCFCEUB" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:13.3333px;outline:currentcolor none medium;border:medium none;word-break:break-all;margin:0px;white-space:pre-wrap;line-height:1.25;color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span><span class="gmail-GD15MCFCKUB gmail-ace_keyword" style="color:blue;white-space:pre">Browse[5]> </span><span class="gmail-GD15MCFCKTB gmail-ace_keyword" style="color:blue">names(in.data)[seq(1, (length(in.data) -
</span><span class="gmail-GD15MCFCKUB gmail-ace_keyword" style="color:blue;white-space:pre">+ </span><span class="gmail-GD15MCFCKTB gmail-ace_keyword" style="color:blue"> geo.length), 2)]
</span><span class="gmail-GD15MCFCEUB" style="outline:currentcolor none medium;border:medium none;word-break:break-all;margin:0px;white-space:pre-wrap"> [1] "X..B01001_001E" "B01001_003E" "B01001_004E" "B01001_005E" "B01001_006E"
[6] "B01001_007E" "B01001_008E" "B01001_009E" "B01001_010E" "B01001_011E"
[11] "B01001_012E" "B01001_013E" "B01001_014E" "B01001_015E" "B01001_016E"
[16] "B01001_017E" "B01001_018E" "B01001_019E" "B01001_020E" "NAME"</span></span></pre></div><div><br></div><div>I don't think NAME was supposed to have made it in there?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 29, 2021 at 11:06 AM Brandon Taylor <<a href="mailto:brandon.taylor221@gmail.com">brandon.taylor221@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<br>I'm not sure if I'm asking this question in the right place...<br><div>I'm running into an error using the package. The code I'm running is:</div><div><br></div>zip_codes = geo.make(zip.code = "*")<br><div>census_data = acs.fetch( 2015, dataset = "acs", geography = zip_codes, span = 5, variable = c( "B01001_001", "B01001_003", "B01001_004", "B01001_005", "B01001_006", "B01001_007", "B01001_008", "B01001_009", "B01001_010", "B01001_011", "B01001_012", "B01001_013", "B01001_014", "B01001_015", "B01001_016", "B01001_017", "B01001_018", "B01001_019", "B01001_020", "B01001_021", "B01001_022", "B01001_023", "B01001_024", "B01001_025", "B01001_027", "B01001_028", "B01001_029", "B01001_030", "B01001_031", "B01001_032", "B01001_033", "B01001_034", "B01001_035", "B01001_036", "B01001_037", "B01001_038", "B01001_039", "B01001_040", "B01001_041", "B01001_042", "B01001_043", "B01001_044", "B01001_045", "B01001_046", "B01001_047", "B01001_048", "B01001_049", "B02001_001", "B02001_003", "B03001_001", "B03001_003", "B15003_001", "B15003_002", "B15003_003", "B15003_004", "B15003_005", "B15003_006", "B15003_007", "B15003_008", "B15003_009", "B15003_010", "B15003_011", "B15003_012", "B15003_013", "B15003_014", "B15003_015", "B15003_016", "B17001_001", "B17001_002", "B19013_001", "B25008_001", "B25008_002", "B25077_001" ) )</div><div><br></div><div>And the result I'm getting is</div><div><br></div>Error in dimnames(acs.obj@standard.error) <- list(acs.obj@geography[[1]], : <br> length of 'dimnames' [2] not equal to array extent<br>In addition: Warning message:<br>In acs.fetch(endyear = endyear, span = span, geography = geography[[1]], :<br> NAs introduced by coercion<br></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>brandon taylor</div><div>(978) 831-3135</div><div>pronouns: dealer's choice<br></div></div></div>