[R] question re: tidycensus

Milton O Faison MF@|@on @end|ng |rom v@u@edu
Fri Jun 11 17:32:52 CEST 2021


The problem is resolved.

o

M. Omar Faison, Ph.D.
Associate Professor, Biology
Associate Vice President, Research, Economic Development, and Graduate Studies
Virginia State University
Petersburg, VA 23806
(804) 524-6793
http://twitter.com/omarfaison
At VSU, we are proudly committed to providing a transformative experience for our students, strategically investing in our academic programs, embracing our position as a top Land Grant University, embracing our role as Virginia’s Opportunity University, and partnering together as a University to tell our story.

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Milton O Faison
Sent: Friday, June 11, 2021 11:04 AM
To: r-help using R-project.org
Subject: [R] question re: tidycensus

[EMAIL FROM EXTERNAL SENDER] [Do not click links or open attachments unless you can confirm the sender and know the content is safe.]

Hi, all,

I'm having a new (for me) problem with tidycensus. When I attempt to pull data at the zcta level using get_acs, I get "GEOMETRYCOLLECTION EMPTY" in the geometry column. It does not happen when I pull data at the census tract level. This is also a fairly new problem, because I was using old code that I wrote and successfully generated maps from in the past. Any thoughts? Here are some code snippets that you can run to see what I am talking about:

zcta_test<-get_acs(geography="zcta",
                       variables=(c(all_pop = "B03002_001",
                                    white_pop = "B03002_003",
                                    black_pop = "B03002_004",
                                    latin_pop = "B03002_012")),
                       geometry=T, cache=T )

ct_test<-get_acs(geography="tract", state="51",
                 variables=(c(all_pop = "B03002_001",
                              white_pop = "B03002_003",
                              black_pop = "B03002_004",
                              latin_pop = "B03002_012")),
                 geometry=T, cache=T )

Thanks in advance for any help you can provide.

o
M. Omar Faison, Ph.D.
Associate Professor, Biology
Associate Vice President, Research, Economic Development, and Graduate Studies Virginia State University Petersburg, VA 23806
(804) 524-6793
https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_omarfaison&d=DwICAg&c=x0kF_uL9Aj8Nho9NV_Y5N0VRgus3JhNu4ET-UrQfa2c&r=IxtcqU8MuUxaq7uVsaxQkg&m=XhPOfl_j7ZHB6bCZibPPH67hk0TqkCT-EryOLREjd30&s=-Dr4LICOMPZZPalYZfcnmLhGdBAqE9yJZXjX-nGQpow&e= <https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_omarfaison&d=DwMFaQ&c=x0kF_uL9Aj8Nho9NV_Y5N0VRgus3JhNu4ET-UrQfa2c&r=IxtcqU8MuUxaq7uVsaxQkg&m=c2Jz-ZN8dT7jr1ymvzj06YmlEcGQKIlxGcJ241xeVvc&s=9hWiMv7VHiP6W763kVu0J8RpEijbsKpHXY9CDrs7buc&e=>
At VSU, we are proudly committed to providing a transformative experience for our students, strategically investing in our academic programs, embracing our position as a top Land Grant University, embracing our role as Virginia's Opportunity University, and partnering together as a University to tell our story.

"The information in this email and any attachments may be confidential and privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient (or the employee or agent responsible for delivering this information to the intended recipient) please notify the sender by reply email and immediately delete this email and any copies from your computer and/or storage system. The sender does not authorize the use, distribution, disclosure or reproduction of this email (or any part of its contents) by anyone other than the intended recipient(s). No representation is made that this email and any attachments are free of viruses. Virus scanning is recommended and is the responsibility of the recipient."

        [[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp&d=DwICAg&c=x0kF_uL9Aj8Nho9NV_Y5N0VRgus3JhNu4ET-UrQfa2c&r=IxtcqU8MuUxaq7uVsaxQkg&m=XhPOfl_j7ZHB6bCZibPPH67hk0TqkCT-EryOLREjd30&s=QRP2OKyBRcfl93mIq6F159UuDSgEC62WqRDYl8ZPUf0&e=
PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwICAg&c=x0kF_uL9Aj8Nho9NV_Y5N0VRgus3JhNu4ET-UrQfa2c&r=IxtcqU8MuUxaq7uVsaxQkg&m=XhPOfl_j7ZHB6bCZibPPH67hk0TqkCT-EryOLREjd30&s=VG60V4vdazTZv1wM5Q0nvEh46A33pFBwkB0Bxa9jzEw&e=
and provide commented, minimal, self-contained, reproducible code.
“The information in this email and any attachments may be confidential and privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient (or the employee or agent responsible for delivering this information to the intended recipient) please notify the sender by reply email and immediately delete this email and any copies from your computer and/or storage system. The sender does not authorize the use, distribution, disclosure or reproduction of this email (or any part of its contents) by anyone other than the intended recipient(s). No representation is made that this email and any attachments are free of viruses. Virus scanning is recommended and is the responsibility of the recipient.”
“The information in this email and any attachments may be confidential and privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient (or the employee or agent responsible for delivering this information to the intended recipient) please notify the sender by reply email and immediately delete this email and any copies from your computer and/or storage system. The sender does not authorize the use, distribution, disclosure or reproduction of this email (or any part of its contents) by anyone other than the intended recipient(s). No representation is made that this email and any attachments are free of viruses. Virus scanning is recommended and is the responsibility of the recipient.”


More information about the R-help mailing list