Displaying 15 results from an estimated 15 matches similar to: "extracting values"
2010 Jul 02
2
S4 classes and debugging - Is there a summary?
Dear all,
I'm getting more and more frustrated with the whole S4 thing and I'm
looking for a more advanced summary on how to deal with them. Often I
get error messages that don't make sense at all, or the code is not
doing what I think it would do. Far too often inspecting the code
requires me to go to the source, which doesn't really help in easily
finding the bit of code
2010 Aug 26
1
Passing arguments between S4 methods fails within a function:bug? example with raster package.
Dear all,
This problem came up initially while debugging a function, but it
seems to be a more general problem of R. I hope I'm wrong, but I can't
find another explanation. Let me illustrate with the raster package.
For an object "RasterLayer" (which inherits from Raster), there is a
method xyValues defined with the signature
2017 Sep 04
2
MaxEnt
Buenas días me gustaria saber cual es la libreria mas actual que contiene
al algoritmo de maxima entropia que permite modelar nichos ecologicos; a su
vez que libreria presenta mejor temática en la representacion de mapas.
Saludos¡
[[alternative HTML version deleted]]
2010 Aug 26
1
my function decided to stop working, problem with scoping?
Hello list.
Until last week, I've been using my function without a problem. I can only
imagine what has changed (no package updates), but all of a sudden, a custom
function that uses raster::xyValues stopped working. For some reason, one of
the values is not found, even though it's there. Here is a snippet of code
from browser() call from within my custom function where everything goes
2010 Jun 23
1
gbm function
Hello
I have questions about gbm package. It seems we have to devide data to two part (training set and test set) for first.
1- trainig set for running of gbm function
2- test set for gbm.perf
is it rigth?
I have 123 sample that I devided 100 for trainig and 23 for test.
So, parameter of cv.folds in gbm function is for what?
Thanks alot
Azam
[[alternative HTML
2011 Jul 13
1
image adds lines
There seems to be a bug in "image" in R 13.1 (on windows 32 & 64 bits) and
on R-devel that is not present in R 13.0 and before.
The below creates a plot with many white lines, horizontal and vertical,
more or less regularly spaced. The effect is particularly dramatic when the
plotting window is made very small.
image(t(volcano)[ncol(volcano):1,])
Robert Hijmans
University of
2008 Sep 22
1
gbm error
Good afternoon
Has anyone tried using Dr. Elith's BRT script? I cannot seem to run
gbm.step from the installed gbm package. Is it something external to gbm?
When I run the script itself
<- gbm.step(data=model.data,
gbm.x = colx:coly,
gbm.y = colz,
family = "bernoulli",
tree.complexity = 5,
learning.rate = 0.01,
bag.fraction = 0.5)
... I
2018 Nov 03
1
odd NOTE in R CMD check of data; Rcpp module related
With the current version of the "raster" package (that I maintain), R CMD
check on packages "soilDB" and "PopGenReport" have this NOTE:
Package: soilDB
Check: data for non-ASCII characters
New result: NOTE
Error in .requirePackage(package) :
unable to find required package 'raster'
Calls: <Anonymous> ... .findInheritedMethods ->
2011 Jan 27
1
Can not invoke maxent() of library(dismo) in GNU linux
Dear R-helpers and Dr. Hijmans,
I can not invoke maxent() in GNU Linux. Could you give me any directions
on that? There is maxent.jar in version 3.3.3e in the right folder.
########################################
R:
> jar <- paste(system.file(package="dismo"), "/java/maxent.jar", sep='')
> jar
[1] "/ebio/abt6/jmao/rpacks/dismo/java/maxent.jar"
2013 Feb 14
1
mapply error with Math (S4 group generic)
I get an error when using self-defined (not standard) functions with mapply
with S4 objects from the raster package that I develop: "Error in
as.character(sys.call(sys.parent())[[1]]) : cannot coerce type 'closure'
to vector of type 'character'". Does anyone understand why? The problem is
illustrated below. Thanks, Robert
> # First a general example that works
2009 May 02
1
dir.create does not return a value (PR#13686)
?dir.create (part of the base package) says that:
"dir.create and Sys.chmod return a logical vector indicating which
operation succeeded for each of the files attempted"
However, on my system it returns nothing (whether successful or not):
> dir.create(":::@!#!::")
> dir.create('b')
> sessionInfo()
R version 2.9.0 (2009-04-17)
i386-pc-mingw32
locale:
2009 Aug 25
1
R CMD on windows 7
I had difficulties running R CMD check and build on windows 7.
The problem seems to be that the script creates folders to which
nobody has any access permissions (not even read). So the script can
not delete these folders or open files.
This worked for me:
Go to the properties of the root folder of your R project (e.g. "D:\R").
Change the settings so that this folder and its
2012 Oct 29
3
How can I map numbers to colours with raster?
This code will read binary file and display it as a map. may problem is that
this code is using a continuous colour scheme, even though I have discrete
data (which is a classification scheme). How can I map numbers to colours
with raster? Please
require(raster)
conne <- file("C:\\lai.bin", "rb")
sd<- readBin(conne, integer(), size=1, n=360*720, signed=F)
2009 Apr 09
3
vdev_disk_io_start() sending NULL pointer in ldi_ioctl()
Hi All,
I have corefile where we see NULL pointer de-reference PANIC as we have
sent (deliberately) NULL pointer for return value.
vdev_disk_io_start()
...
...
error = ldi_ioctl(dvd->vd_lh, zio->io_cmd,
(uintptr_t)&zio->io_dk_callback,
FKIOCTL, kcred, NULL);
ldi_ioctl() expects last parameter as an
2010 Jul 18
6
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* allan (1.0)
Alan Lee
http://crantastic.org/packages/allan
Automates Large Linear Analysis Model Fitting
* andrews (1.0)
Jaroslav Myslivec
http://crantastic.org/packages/andrews
Andrews curves for visualization of multidimensional data
* anesrake (0.3)
Josh Pasek
http://crantastic.org/packages/anesrake
This