Re: [R-sig-Geo] Building a vector of random sf st_points

2016-12-21 Thread Edzer Pebesma
On 21/12/16 17:25, Pierre Racine wrote: > Hi, Hi Pierre! > > Very new to spatial R. I'm trying to find the best way to build a sf > dataframe of random points inside an extent. I built a matrix of random > coordinates and now I try to convert this matrix to a vector of st_point. > > I was

[R-sig-Geo] Building a vector of random sf st_points

2016-12-21 Thread Pierre Racine
Hi, Very new to spatial R. I'm trying to find the best way to build a sf dataframe of random points inside an extent. I built a matrix of random coordinates and now I try to convert this matrix to a vector of st_point. I was expecting that something like: PTS <- matrix(seq(1,6), 3, 2) ptsdf