TransWikia.com

Error in poly[, 1] : incorrect number of dimensions

Geographic Information Systems Asked by Ainhoa Gutiérrez Robledo on May 26, 2021

I’m trying to create random points using slpancs library in R. But I have this problem:

random_points<- csr(poly = "zona", 1000)
Error in poly[, 1] : incorrect number of dimensions

One Answer

The poly argument has to be a two-dimensional matrix with two columns, defining the polygon. Since you've passed a string "zona", the function has told you this isn't usable.

Answered by Spacedman on May 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP