Skip to content

Instantly share code, notes, and snippets.

@tbuckl
Created October 31, 2018 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbuckl/14d89ca95b9316a2509b0939d07ef982 to your computer and use it in GitHub Desktop.
Save tbuckl/14d89ca95b9316a2509b0939d07ef982 to your computer and use it in GitHub Desktop.
st_transform a list of simple features dataframes to one coordinate reference system in R
library(sf)
sf_dfs <- ls()[sapply(mget(ls(), .GlobalEnv), function(x) {class(x)[[1]]=="sf"})]
sf_dfs_list <- lapply(sf_dfs,get)
e <- eapply(environment(), st_transform, crs=26910)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment