sf
Simple Features for R (by r-spatial)
tidycensus
Load US Census boundary and attribute data as 'tidyverse' and 'sf'-ready data frames in R (by walkerke)
Our great sponsors
sf | tidycensus | |
---|---|---|
17 | 13 | |
1,276 | 625 | |
2.0% | - | |
9.4 | 7.5 | |
7 days ago | 9 days ago | |
R | R | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sf
Posts with mentions or reviews of sf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-11.
-
Visualizing shapefiles in R with sf and ggplot2!
sf
- Ask HN: What are some of the most elegant codebases in your favorite language?
- Learning How to Use "Road Network" Files
-
[Q] Book suggestion for Spatial Statistics / Geostatistics
Before learning about geostatistics, do you feel comfortable working with and exploring geospatial data? If not, I'd highly recommend getting comfortable with the sf package in R. It's an implementation of the OpenGIS standard in R tidyverse. The OpenGIS standard defines specific data types and functions for geospatial data, which means that you can read e.g. PostGIS documentation and use the same functions in R.
-
People who live near other people vote for Democrats
Tools used: various packages in R (tidycensus, dplyr, ggplot2, sf)
-
Calculate Distance From a Specific Coordinate to a Shapefile?
R supports working with spatial data really well; you should look into the sf-package: https://r-spatial.github.io/sf/
-
[Q] Recommendations for Spatial Analysis Books with R
A lot of the books are out if date because geospatial has been rewritten from the ground up to be dramatically improved. I would focus on the sf package: https://r-spatial.github.io/sf/. I would also find a PostGIS book which sf shares many functions and learn to the the database when appropriate.
-
Overlay Grid on Shapefile
Are you using the sf package? I envision running a loop that creates a vector feature for each cell of the raster grid, intersects that feature with the underlying shapefile, multiplies the area of each intersected portion by its value, and assigns the raster the mean of those values. Kind of a lot to set up, but I'm not a master at this so maybe someone else knows a more straightforward method
-
is that possible to find check, a point in or out in a geojson on R
I found this: https://github.com/r-spatial/sf/issues/1595
-
Converting distance/azimuth to a real position
Now that I explained the concept, I will show some R code using the sf library to achieve this. sf stands for simple features and it's a very nice library for working with geospatial data.
tidycensus
Posts with mentions or reviews of tidycensus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-06.
-
US county names dataset?
You could use the tidycensus package to get the information you need
- ACS Data in easily Digestable Format
-
Help!! Dataset required for Supervised Linear Regression | Learning purposes
the census (accessible using tidycensus or you can download bulk data straight from their website)
-
People who live near other people vote for Democrats
Data sources: Minnesota Secretary of State website, American Community Survey via tidycensus
- A blog post on learning R for spatial data science
-
Anyone know if there's a US Time Zones by Zip Code DB out there
If you happen to use R the tidycensus package is absolutely fantastic.
-
(MAPS) There are about 1,800 Ukrainian-born Hoosiers and 8,000 Hoosiers with Ukrainian ancestry
Thanks! I used the tidycensus package in RStudio https://walker-data.com/tidycensus/
-
Finding Usable US Census Data
R has a few packages for this and the first that comes to mind is tidycensus (https://walker-data.com/tidycensus/).
-
NJ Population mapping by block group
If you have some facility with R, then the 'tidycensus' package is your answer here. You can get the latest ACS (2019) data at the block group level with that. Alternatively, NHGIS from the IPUMS folks offers access to census tabular and spatial data in a straightforward format.
-
SF object pivot/spread results in improperly pivoted object (NA values)
This indicates the polygons are different - I would ASSUME that the shape for a US county does not change too much (or ever) so I feel like its an issue with the package [tidycensus](https://walker-data.com/tidycensus/).
What are some alternatives?
When comparing sf and tidycensus you can also consider the following projects:
tmap - R package for thematic maps
latlong - The latlong package maps from a latitude and longitude to a timezone.
ggmap - A package for plotting maps in R with ggplot2
r4ds - R for data science: a book
awesome-R - A curated list of awesome R packages, frameworks and software.
dplyr - dplyr: A grammar of data manipulation
ggplot2 - An implementation of the Grammar of Graphics in R
ggfx - Filters and Shaders for 'ggplot2'
baseballr - A package written for R focused on baseball analysis. Currently in development.
rmarkdown - Dynamic Documents for R
hoopR - An R package to quickly obtain clean and tidy men's basketball play by play data.