Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
kernelUD中的错误:xy应在二维中定义_R_Statistics_Spatial - Fatal编程技术网

kernelUD中的错误:xy应在二维中定义

kernelUD中的错误:xy应在二维中定义,r,statistics,spatial,R,Statistics,Spatial,我使用从R中提取的超市位置数据在R中运行内核密度估计。但是在运行此脚本时,我得到了一个错误 kde_output <- kernelUD(ls, h="href", grid = 1000) kde\u输出能否显示str(ls)Formal类“SpatialPointsDataFrame”[package“sp”]和5个插槽。@data:“data.frame”:128 obs。共15个变量:……$F_id:chr[1:128]“way/28162269”“way/

我使用从R中提取的超市位置数据在R中运行内核密度估计。但是在运行此脚本时,我得到了一个错误

 kde_output <- kernelUD(ls, h="href", grid = 1000)

kde\u输出能否显示
str(ls)
Formal类“SpatialPointsDataFrame”[package“sp”]和5个插槽。@data:“data.frame”:128 obs。共15个变量:……$F_id:chr[1:128]“way/28162269”“way/29280846”“way/44978440”“way/48578254”。@coords:num[1:128,1:3]13.113.113.113……-attr(,“dimnames”)=2..$:chr[1:3]“coords.x1”“coords.x2”“coords.x3”@bbox:num[1:3,1:2]1347.7 0 13.1 47.8的列表…-attr(,“dimnames”)=2..$:chr[1:3]“coords.x1”“coords.x2”“coords.x3”chr[1:2]“min”和“max”。@proj4string:带有1个插槽的正式类“CRS”[package“sp”]