
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> # put this test last, because of spatstat side effect on units:
> suppressPackageStartupMessages(library(spatstat))
> suppressPackageStartupMessages(library(sf))
> data(chicago)
> st_as_sf(chicago)
Simple feature collection with 620 features and 4 fields
geometry type:  GEOMETRY
dimension:      XY
bbox:           xmin: 0.3893523 ymin: 153.1034 xmax: 1281.986 ymax: 1276.56
epsg (SRID):    NA
proj4string:    NA
First 10 features:
     label seg tp marks                           geom
1   window  NA NA  <NA> POLYGON ((1281.986 153.1035...
2  segment  NA NA  <NA> LINESTRING (0.3894739 1253....
3  segment  NA NA  <NA> LINESTRING (109.683 1251.77...
4  segment  NA NA  <NA> LINESTRING (109.683 1251.77...
5  segment  NA NA  <NA> LINESTRING (198.1486 1276.5...
6  segment  NA NA  <NA> LINESTRING (197.9988 1251.1...
7  segment  NA NA  <NA> LINESTRING (290.4787 1276.5...
8  segment  NA NA  <NA> LINESTRING (288.9907 1250.5...
9  segment  NA NA  <NA> LINESTRING (380.1326 1276.5...
10 segment  NA NA  <NA> LINESTRING (379.9827 1249.8...
> # ppp:
> g = gorillas
> st_as_sf(g)
Simple feature collection with 648 features and 4 fields
geometry type:  GEOMETRY
dimension:      XY
bbox:           xmin: 580457.9 ymin: 674172.8 xmax: 585934 ymax: 678739.2
epsg (SRID):    NA
proj4string:    NA
First 10 features:
    label group season       date                           geom
NA window  <NA>   <NA>       <NA> POLYGON ((585391.9 675110, ...
1   point major    dry 2006-01-06      POINT (582518.4 676886.2)
2   point major    dry 2006-01-10        POINT (581823 677422.7)
3   point major    dry 2006-01-15        POINT (582131 676937.9)
4   point major    dry 2006-01-24        POINT (582111.9 677420)
5   point minor    dry 2006-01-27      POINT (582585.1 677509.7)
6   point major    dry 2006-01-28      POINT (582302.3 677521.6)
7   point major    dry 2006-02-01      POINT (583167.2 676730.5)
8   point major    dry 2006-02-03      POINT (583584.5 677207.1)
9   point major    dry 2006-02-13      POINT (583117.8 676850.3)
> marks(g) = NULL
> st_as_sf(g)
Simple feature collection with 648 features and 1 field
geometry type:  GEOMETRY
dimension:      XY
bbox:           xmin: 580457.9 ymin: 674172.8 xmax: 585934 ymax: 678739.2
epsg (SRID):    NA
proj4string:    NA
First 10 features:
    label                           geom
1  window POLYGON ((585391.9 675110, ...
2   point      POINT (582518.4 676886.2)
3   point        POINT (581823 677422.7)
4   point        POINT (582131 676937.9)
5   point        POINT (582111.9 677420)
6   point      POINT (582585.1 677509.7)
7   point      POINT (582302.3 677521.6)
8   point      POINT (583167.2 676730.5)
9   point      POINT (583584.5 677207.1)
10  point      POINT (583117.8 676850.3)
> 
> proc.time()
   user  system elapsed 
  1.095   0.068   1.154 
