[R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-31 Thread Kevin Zembower via R-sig-Geo
Sorry to resurrect a long-dead thread, but I'm still struggling with my desire to assign a median age to the population in a group of US census blocks. I'm using the data from the US Census table P12, which bins the ages into ranges. I'm convinced (thank you!) that I can't compute the exact

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-09-09 Thread Kevin Zembower via R-sig-Geo
all > chance that someone in the table could be over 100, but rare, I think > the current oldest reported living person is in the hundred and > teens, > so 120 would be safe). > > On Thu, Aug 31, 2023 at 1:48 PM Kevin Zembower via R-sig-Geo > wrote: > > > > Sorry

Re: [R-sig-Geo] Adding Census polygons to OSM map?

2023-06-07 Thread Kevin Zembower via R-sig-Geo
arted.html > > https://cran.r-project.org/web/packages/tmap/index.html > > > Cheers, > Tim > > From: R-sig-Geo on behalf of Kevin Zembower > via R-sig-Geo > Sent: Monday, June 5, 2023 11:21 AM > To: r-sig-geo@r-project.org > Subject: [R-sig-Geo] Adding

Re: [R-sig-Geo] Mapping my own polygon?

2023-06-13 Thread Kevin Zembower via R-sig-Geo
a54c743e078aca8401537a0 > <https://gist.github.com/mdsumner/e6997c2f4a54c743e078aca8401537a0> > > > <https://gist.github.com/mdsumner/e6997c2f4a54c743e078aca8401537a0 > <https://gist.github.com/mdsumner/e6997c2f4a54c743e078aca8401537a0>> > > >

Re: [R-sig-Geo] Mapping census tracts with leaflet(): "sf layer has inconsistent datum" error

2023-06-01 Thread Kevin Zembower via R-sig-Geo
; (rw_pop_map <- rw_pop %>% >     st_transform('+proj=longlat +datum=WGS84') %>% >     leaflet() %>% >     fitBounds(-76.616, 39.352, -76.610, 39.346) %>% >     addTiles() %>% >     addPolygons() > ) > ## End > > On Wed, May 31, 2023 at 4

[R-sig-Geo] Adding a text-only label to a leaflet map?

2023-06-01 Thread Kevin Zembower via R-sig-Geo
Hello, all, With Ben and Olivier's help, I was able to plot my neighborhood's census blocks and tracts on an OSM base map, with leaflet, without warnings. My next problem is labeling the polygons I've plotted. Here's an example of what I've tried so far: ## Reproducible example

[R-sig-Geo] Mapping census tracts with leaflet(): "sf layer has inconsistent datum" error

2023-05-31 Thread Kevin Zembower via R-sig-Geo
Hello, all. Newbie to sf, tidycensus and the tidyverse here. First off, is this the appropriate list to ask this question? If not, let me know and I'll go away. I'm trying to map census blocks for my neighborhood to a base map. I'm using tidycensus to get the geometry of the census blocks, and

Re: [R-sig-Geo] Adding Census polygons to OSM map?

2023-06-08 Thread Kevin Zembower via R-sig-Geo
>> 8db681f6989%7Cf46cb8ea79004d108ceb80e8c1c81ee7%7C0%7C0%7C6382182 >> 5635 >>>> >> 1940428%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV >> 2luMzIi >>>> >> LCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=X4Cm12TD >> 2iIH498 >>>> sJlRMPzOFz7IX9XuVdh

[R-sig-Geo] Adding Census polygons to OSM map?

2023-06-05 Thread Kevin Zembower via R-sig-Geo
Hello, again, I've given up my work with leaflet, trying to map my neighborhood with US Census boundaries. Even though it was quick and easy to add the Census boundaries to the map, I couldn't create the labels I wanted (see https://stat.ethz.ch/pipermail/r-sig-geo/2023-June/029284.html).

[R-sig-Geo] Mapping my own polygon?

2023-06-10 Thread Kevin Zembower via R-sig-Geo
In my continuing work on reporting on US Census data for my neighborhood, I'd like to draw a map of the boundaries of it. I was successful in creating and printing an OSM basemap, with the US Census blocks that make up my neighborhood on it. Now, I'd like to create my own polygon, of the

Re: [R-sig-Geo] Mapping my own polygon?

2023-06-11 Thread Kevin Zembower via R-sig-Geo
at you're using or simply close to > it, you should make sure you know. :) > > I'm using in-dev code in the example, it's not because I want you to > use  that or advise you to - it's just to keep a record of what I did. I > experimented with the code and scale to guess

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-08 Thread Kevin Zembower via R-sig-Geo
a.baltimorecity.gov/datasets/neighborhood-1/explore?location=39.284832%2C-76.620516%2C12.91> > > Best, Dexter > https://dexterlocke.com/ <https://dexterlocke.com/> > > > > > > On Mon, Aug 7, 2023 at 3:02 PM Kevin Zembower via R-sig-Geo > mailto:r-sig-geo

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Kevin Zembower via R-sig-Geo
available via tidycensus. > Regarding your first question, I'm not sure I follow what your objective is > with it. I would use a geography of census block groups as the measure of > median for census block groups. Otherwise it is unclear how you are defining > what a "group of blo

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Kevin Zembower via R-sig-Geo
you are defining what a "group of blocks" is. > > On Mon, Aug 7, 2023 at 2:34 PM Kevin Zembower via R-sig-Geo > mailto:r-sig-geo@r-project.org>> wrote: > > Hello, all, > > I'd like to obtain the median age for a population in a specific gr

[R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Kevin Zembower via R-sig-Geo
Hello, all, I'd like to obtain the median age for a population in a specific group of US Decennial census blocks. Here's an example of the problem: ## Example of calculating median age of population in census blocks. library(tidyverse) library(tidycensus) counts <- get_decennial(

[R-sig-Geo] Advice on starting to analyze smokestack emissions?

2023-12-10 Thread Kevin Zembower via R-sig-Geo
Hello, all, I'm trying to get started analyzing the concentrations of smokestack emissions. I don't have any professional background or training for this; I'm just an old, retired guy who thinks playing with numbers is fun. A local funeral home in my neighborhood (less than 1200 ft from my home)