Displaying 20 results from an estimated 6000 matches similar to: "Detect the presence of an object"
2005 May 06
4
Change class factor to numeric
I am attempting to develop a multiple regression model using selected
model variables that should all be treated as numeric (mostly real)
values.
However, R considers one specific variable "mass" automatically to be of
class "factor", probably because "mass" consists of integer values that
are repeated.
I now want to force R to treat "mass" as a numeric
2003 Sep 30
2
non-linear trends in kriging model
Hi
I am struggling to fit a non-linear trend using the
likfit function in geoR.
Specifically I want a sigmoidal function, something
like SSfpl in the nls package to fit the trend. But
it seems trend.spatial in geoR only works with lm or
glm type models.
Any ideas how I can specify the model to calculate the
kriging parameters using REML, including the
parameters of a sigmoidal trend function
2003 Jan 08
1
try.Silent
In an email to the help list John Chambers
wrote about the function helpSilent which is in the methods package,
pointing out that there is no restrictive reason to be in this package.
I did not know about this function and just incorporate it in several
functions of the geoR package where a much less elegant solution was
being used.
I guess other packages could use it as well.
Therefore,
2005 Oct 31
3
Applying a function to a vector
I have defined a function to compute the value of a
beta distribution of the second kind (the existing
beta distribution of th stats package is the beta
distribution of the first kind). It works perfectly
for a single value, but I want to apply it to a vector
of 22 000 values. I can use a loop for the calculation
of each value but it runs very very slowly.
So, what can I change ?
Hers's the
2005 Dec 13
1
bug in geoR (?)
I've enconuntered this problem with the last cran version of geoR:
> library(geoR)
> day <- rep(1:2, each=5)
> coords <- matrix(rep(runif(10),2), 10, 2)
> data <- rnorm(10)
> data[1] <- NA
> as.geodata(cbind(coords, data, day), realisations=4)
as.geodata: 1 points removed due to NA in the data
Errore in as.geodata(cbind(coords, data, day), realisations = 4) :
2004 Jan 30
2
How to plot a small figure in a bigger one???
Hi,
I want to insert a small figure into a bigger plot. I saw people are doing
this all the time, but I just could not figure out how to do it in R.
Thanks for your help!
Jinfeng Zhang
2005 Feb 18
2
Using sweave
hello,
Suppose in Rnw file, I compute a numeric of name x containing the value 1.
In my tex file, I want to write
Let x= "the real value of x"
so that I can see in my dvi file : Let x = 1,
with 1, the actual value of x written in a math environnement for example.
Thanks,
Matthieu
2004 Jan 08
1
Using geoR krige.conv
Hi,
I'm using the function krige.conv from package geoR but I'm getting a
warning that I do not understand:
Warning messages:
1: NaNs produced in: sqrt(variance)
2: NaNs produced in: sqrt(variance)
I'm performimg an ordinary kriging with a log transform (lambda=0).
Does anyone knows where this comes from ?
Thanks and regards
EJ
2003 Sep 10
1
geoR variogram problem
Dear GeoR-er,
If I use the variog function in the latest release of geoR, the first lag is
always ignored.
For instance, if you read in geodata, calculates the variogram using the
variog function and give in a uvec like uvec=seq(0,max,by=2.44), it only
starts giving results from distance=4.88 and ignores 2.44!
This wasn't the case in former versions of geoR. Is this done on purpose?
Why?
2004 Mar 26
1
Help import data
Friends:
1. Is it possible to import data from excel and/or access to R? How?
2. Is it possible to import data from a txt file? How?
Thanks in advance,
Ricardo.
[[alternative HTML version deleted]]
2004 Apr 06
2
how to update R
Dear R users,
I have R 1.8.0. and, when I try to load the package "multcomp", I have an
error message saying that this package was developed under R 1.8.1.
So my question is "How to update R" ?
Should I uninstall my version of R to install the new one or is there a
simpler way to update it ?
Than you for your answer.
Sincerely,
Renaud.
2004 Feb 23
1
border of a polygon in contour.kriging - geoR
Dear all,
When a conventional kriging and then a contour plot is limited with a polygon (as possible with krige.conv and contour.kriging), the
polygon border is displayed in black by default.
> kc<-krige.conv(CZdata,loc=pred.grid,borders=czpoly,krige=krige.control(obj.m=ls))
> plot(CZcoord,xlab="x",ylab="y",type="n",asp=1)
>
2004 Sep 16
1
geoR/variog4() not returning all directions
Mac OS 10.3.5, R 2.0.0
latest version of geoR
I have an incomplete 5 x 20 spatial array of samples (60 out of 100
possible locations) for which I would like to calculate directional
variograms using variog4(). Unfortunately, I can't get it to return all
4 directions. It returns variograms for 45, 90, and 135 degrees,
omitting 0 degrees (pi/4, pi/2, 3pi/4, omitting 0). If I specify 0
2004 Feb 27
5
How to save images?
After I use function plot() to get an image, how can I
save the image or export it to .gif or other digital
formats?
Thanks a lot.
2003 Nov 11
4
installing an add-on package
Dear all,
my apologies if I am posting a silly question - but I couldn't find any
helpful information on this elswhere.
In the R FAQ, version 1.8-1, there is a section "5.2 How can add-on
packages be installed?", but it only gives information for Unix users.
How can I install an add-on package under Windows? (Specifically, I have
downloaded the "rmeta" package from CRAN.)
2006 Jun 28
1
calculating the spacial autocorrelation for poisson data
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060628/2ff7714d/attachment.pl
2005 Dec 29
1
Help with Kriging
R Experts,
I'm looking for some help with the geoR package. I'm trying to krig
some data without using a global neighborhood. I would like to set my
moving neighborhood to a distance, say 100 meters, where I know my data
is spatially correlated. I have tried the ksline function, but that
only allows my moving neighborhood to be set to a number of data points.
But, since my data
2006 Aug 08
1
parameter yaxs / function hist (graphics)
Dear R users,
The parameters xaxs and yaxs (function par, package graphics)
seem not to work with the function hist (package graphics),
even when the parameters xlim and ylim are defined.
Is there any way to make yaxs="i" and xaxs="i" work properly
with the function hist, mainly to produce histograms that
"touch" the horizontal axis? The R documentation and the
R
2007 Dec 09
2
adjusting "levels" after subset a table
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071208/5409f1a7/attachment.pl
2006 Feb 09
3
about Cox-Box transformation
Dear R-users,
I am using R version 1.8.0-1 under Suse 8.2.
I need to use the boxcox command because I want to apply a Cox-Box
transformation to a vector of rainfall values.
Within the libraries, the MASS library is present, but I don't know
whether this means that is automatically installed or not.
The command doesn't work. What do I have to do in order to make it
working? Is just a