[R] [spatstat] Convert shapefile to pixel image

2017-06-01 Thread Lluis.Hurtado
Dear all, I am currently working with the spatstat package, using windows and pixel images. First: My aim is to transform a shapefile (see attached) into a pixel image. My idea is to start transforming the shapefile into a Spatial Polygon file: x <- readShapeSpatial("21441.shp") y <- as(

[R] [spatstat] Convert shapefile to pixel image

2017-06-01 Thread Lluis.Hurtado
Dear all, I am currently working with the spatstat package, using windows and pixel images. First: My aim is to transform a shapefile (see attached) into a pixel image. My idea is to start transforming the shapefile into a Spatial Polygon file: x <- readShapeSpatial("21441.shp") y <- as(

[R] LaplacesDemon package installation

2016-02-04 Thread Lluis.Hurtado
Dear all, I've recently changed my Mac and I am trying to reinstall my commonly used R-packages. I'm having troubles with a package called LaplacesDemon. This package is no more in the CRAN list and the developers web page (http://www.bayesian-inference.com/software) is out for more than half a

Re: [R] Fast evaluation of functions in 3D domains

2015-03-25 Thread Lluis.Hurtado
Dear all, Finally I have tried three different options to integrate a function in a 3D volume. Here I show a test example. The volume is the box [0,100] x [0,100] x [0,100] and the function is nfw(d) = 4/((d/5)*(1+(d/5))^2) where d is the distance between each point in the box to the point (

[R] Fast evaluation of functions in 3D domains

2015-03-23 Thread Lluis.Hurtado
Dear all, I am currently working with the spatstat package with 3D samples. I am trying to evaluate a non analytical function over the window that encloses the sample and I need to know which is the fastest way of doing it. The function input is a 3 coordinate position in the window (x,y,z) a