Albany, NY

Albany is the capital city of the U.S. state of New York, the seat of Albany County, and the central city of New York’s Capital District. Roughly 135 miles (217 km) north of the City of New York, Albany sits on the west bank of the Hudson River, about 10 miles (16 km) south of its confluence with the Mohawk River. The population of the city was 97,856 at the time of the 2010 census.

http://en.wikipedia.org/wiki/Albany,_New_York

Show Only ...
Maps - Photos - Videos

Daily Update – June 10, 2022

Good morning! Yeah, it’s Friday!

Beautiful morning but rain is coming tomorrow. Out walking laps on the plaza then it’s off to work. And then a raining weekend? Although now the forecast isn’t looking too bad.

Mostly sunny and 57 degrees at the Empire State Plaza. 😎 There is a west-southwest breeze at 5 mph. πŸƒ. The dew point is 52 degrees.

Out for the morning walk on the plaza. 🚢‍♀️ A nice walk. Yesterday, I managed to get in 12,000 steps which isn’t bad for having to run home and get my truck and not doing the mid-day or morning walks. Not a lot of wildlife down at the town park, although I have to admit I was paying closer to attention to my Zoom call rather then nature.

The oil is changed on Big Red and tires rotated. πŸ›» So I should be good for summer trips now, with nothing needed until December, except whatever might break in the mean-time. But I’m not expecting a lot, and I feel like with $5 gasoline, there won’t be a lot of miles driven this summer.

This weekend is going to be rainy 🌧 so I plan to stay close to home, and next weekend but might be cold, but regardless I hope to get out of town so I can enjoy some time in the woods. So far it’s been kind of a bummer summer, just a lot of cold and rain, with very high gas prices.

One nice thing though, is this weekend I won’t have to work for a change. πŸ‘¨‍πŸ’» Just a nice quiet weekend, no work. At least I hope. But I think so. I could go down to the library on Saturday or maybe Five Rivers. I like to get my steps in.

Upcoming Holidays – June 6, 2022

The transit of the sun is the mid point of the day, when the sun is due south. This varies based on the time of year, but is halfway point between sunrise and sunset.

  • Four Mondays until Independence Day πŸ‡ΊπŸ‡Έ – Jul 4
  • Five Mondays until World Population Day πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘§ – Jul 11
  • Eight Mondays until August 🌻 – Aug 1
  • 13 Mondays until Labor Day πŸ‘¨β€πŸ­ – Sep 5
  • 21 Mondays until Halloween πŸŽƒ – Oct 31
  • 23 Mondays until Average High is 50 πŸ‚ – Nov 14
  • 25 Mondays until Cyber Monday πŸ›οΈ – Nov 28
  • 26 Mondays until First Sunday of Advent ✝️ – Dec 5
  • 26 Mondays until Repeal of Prohibition Day 🍺 – Dec 5
  • Six months – Saint Nicholas Day πŸŽ… – Tuesday Dec 6
  • 29 Mondays until Boxing Day πŸ₯Š – Dec 26

Pond

The man-made pond in the former trailer park as part of the landfill restoration.

Sunday May 31, 2020 — Albany, NY

Calculate Median Household Income for Albany Wards using R πŸ—Ί

Calculate Median Household Income for Albany Wards using R πŸ—Ί

A while back I posted similar code using Python, but with R the code is cleaner, simpler.

library(tidycensus)
library(tidyverse)
library(sf)

# shapefile of Albany Wards, project to web mercator 3857
# calculate area of each ward, load Ward field as numeric
# hide extra fields in shapefile
wards <- read_sf('/tmp/Albany Wards.gpkg') %>%
  st_transform(3857) %>%
  mutate(ward_area = st_area(.),
         Ward = as.numeric(Ward)) %>%
  dplyr::select(Ward, ward_area)

# get median household income, re-project
# to web mercator 3857
income<- get_acs(
  geography = "tract",
  state='ny',
  county='Albany',
  variables = "B19013_001",
  year = 2020,
  survey = "acs5",
  geometry = T
) %>%
  st_transform(3857)


# intersect income against wards
# calculate percent of ward's area in each census tract
# group back together as a single ward
# create a weighted-mean of median household inco
# rejoin back together with original ward shapefile
income %>%
  st_intersection(wards) %>%
  mutate(percent_of_ward = (st_area(.) / ward_area) %>% units::drop_units() ) %>%
  st_drop_geometry() %>%
  group_by(Ward) %>%
  summarise(estimate = weighted.mean(estimate, percent_of_ward, na.rm=T)) %>%
inner_join(wards, ., by=c('Ward'))

Here is what is produced, with geometry columns suppressed (exclude the last line above when you don’t need the other information for mapping).

    Ward estimate
<dbl> <dbl>
1 1 57500.
2 2 46544.
3 3 37274.
4 4 39713.
5 5 38127.
6 6 47070.
7 7 47915.
8 8 86490.
9 9 57688.
10 10 44964.
11 11 33290.
12 12 69262.
13 13 67333.
14 14 78489.
15 15 72368.