Re: [R] Could not find function "pointsToRaster"

2016-04-30 Thread Ben Tupper
Hi, I think you need to check the order of your arguments to rasterize(). See the documentation with ?rasterize and compare to what you did below. Cheers, Ben > On Apr 30, 2016, at 9:55 AM, Ogbos Okike wrote: > > Dear All, > Thanks for your inputs. I did replace pointsToRaster () with > ra

Re: [R] Could not find function "pointsToRaster"

2016-04-30 Thread Ogbos Okike
Dear All, Thanks for your inputs. I did replace pointsToRaster () with raster::rasterize(). Below is part of my script. But I got another error: Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘rasterize’ for signature ‘"RasterLayer", "matrix"’ Than

Re: [R] Could not find function "pointsToRaster"

2016-04-30 Thread Leonardo Ferreira Fontenelle
Dear Ogbos Okike, I can't know how your script depends on pointsToRaster(), but googling around I found that the function seems to have been marked as obsolete: http://www.inside-r.org/packages/cran/raster/docs/linesToRaste Hope that helps, Leonardo Ferreira Fontenelle http://lattes.cnpq.br/923

Re: [R] Could not find function "pointsToRaster"

2016-04-30 Thread Ben Tupper
Hi, A terrific resource for this type of issue (and pretty much anything related to R) is http://rseek.org/ I'm sure I use it at least daily. Check out ... http://rseek.org/?q=pointsToRaster The first hit is about pointsToRaster() - it has been replaced by raster::rasterize() Cheers, Ben >

[R] Could not find function "pointsToRaster"

2016-04-30 Thread Ogbos Okike
Dear All, I have a script that draws longitude and latitude of lightning occurrence. This script was running fine before. But when I changed my system and do a fresh install on another laptop, this error persist. source("script") Error in eval(expr, envir, enclos) : could not find function "poin