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 http://twitter.com/omarfaison<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]]
Have you read the posting guide, linked below, which says: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R <https://cran.r-project.org/doc/FAQ/R-FAQ.html#Add-on-packages-in-R>), ask questions on R-help. If the question relates to a *contributed package* , e.g., one downloaded from CRAN, try contacting the package maintainer first. You can also use find("functionname") and packageDescription("packagename") to find this information. *Only* send such questions to R-help or R-devel if you get no reply or need further assistance. This applies to both requests for help and to bug reports." The "tidyverse" consists of contributed packages, so do not be surprised if you do not receive a response here. Of course, if you have contacted the maintainers, say so, but of course that doesn't guarantee a response. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Jun 11, 2021 at 8:04 AM Milton O Faison <MFaison at vsu.edu> wrote:> 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 > http://twitter.com/omarfaison< > 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 at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
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 at r-project.org> On Behalf Of Milton O Faison Sent: Friday, June 11, 2021 11:04 AM To: r-help at 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 at 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&ePLEASE 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&eand 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.?