## Not run:
# # one point per grid cell, exclude nodata areas:
# rsaga.grid.to.points("dem", "dempoints")
# # take only every 20th point, but to not exclude nodata areas:
# rsaga.grid.to.points.randomly("dem", "dempoints20", freq = 20)
# ## End(Not run)
Run the code above in your browser using DataLab