Skip to content

Commit 843bb38

Browse files
committed
Removed unused data from README
1 parent 8e79a01 commit 843bb38

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,17 @@ neighborhoods <-
4141
select(neighborhood, polygon, index) %>%
4242
sdf_persist()
4343

44+
# Download and transform locations of New York City museums
45+
# (https://catalog.data.gov/dataset/new-york-city-museums)
4446
museums.data <-
4547
read.csv("https://data.cityofnewyork.us/api/views/fn6f-htvy/rows.csv?accessType=DOWNLOAD", stringsAsFactors = FALSE) %>%
4648
mutate(name = NAME, coordinates = sub("POINT \\((.+) (.+)\\)$", "\\1,\\2", the_geom)) %>%
4749
select(name, coordinates)
48-
4950
museums.coordinates <- data.frame(do.call('rbind', strsplit(museums.data$coordinates, split = ",", fixed = TRUE)))
5051
names(museums.coordinates) <- c("longitude", "latitude")
51-
5252
museums.df <- cbind(museums.data, museums.coordinates) %>% select(name, latitude, longitude)
5353

54-
# Coordinates of some places in NYC
55-
places.df <- data.frame(
56-
name = c("Statue of Liberty", "Columbia University", "The Metropolitan Museum of Art"),
57-
latitude = c(40.6892474, 40.814856, 40.77944365),
58-
longitude = c(-74.0445405280149, -73.9610162365099,-73.9633641138519),
59-
stringsAsFactors = FALSE)
60-
6154
# Create Spark DataFrame from local R data.frame
62-
#places <- copy_to(sc, places.df, "places")
6355
museums <- copy_to(sc, museums.df, "museums")
6456

6557
# Perform a spatial join to associate museum coordinates to

0 commit comments

Comments
 (0)