Re: [R] Errors running spdplyr example

2017-06-07 Thread Michael Sumner
On Wed, 7 Jun 2017 at 17:29 Shige Song wrote: > Dear All, > > When I tried to run the following code (taken from the *spdplyr* package > vignettes): > > library(spdplyr) > library(maptools) > data(wrld_simpl) > > worldcorner <- wrld_simpl %>% > mutate(lon = coordinates(wrld_simpl)[,1], lat = >

[R] Errors running spdplyr example

2017-06-07 Thread Shige Song
Dear All, When I tried to run the following code (taken from the *spdplyr* package vignettes): library(spdplyr) library(maptools) data(wrld_simpl) worldcorner <- wrld_simpl %>% mutate(lon = coordinates(wrld_simpl)[,1], lat = coordinates(wrld_simpl)[,2]) %>% filter(lat < -20, lon > 60) %>%