Displaying 20 results from an estimated 110 matches similar to: "merging tables by columns AND rows"
2005 Nov 11
3
problems with for: warnings and segfault
Hi,
I have two problem with a for looping using R Version 2.1.1 (2005-06-20) on a
Debian Linux Testing.
The first problem: warnings messages
Look:
> xcoord <- 5
> ycoord <- 5
> indice <- 1
> for(i in c(1:5)) {indice <- indice+1;xcoord[indice] <- xcoord+i;
ycoord[indice] <- ycoord }
Warning messages:
1: number of items to replace is not a multiple of replacement
2008 Dec 15
1
Semi-random movement inside a circle
Dear list,
I am trying to program semi-random movement within a circle, with no particles leaving the circle. I would like them to bounce back when they come to close to the wall, but I don't seem to be able to get this right. Would somebody kindly give me a hint ? This is my code so far, the particle starts at some point and moves towards the wall, but I don't get the "bouncing
2008 Dec 15
1
Movement within a circle
Dear list,
?
I am trying to program semi-random movement within a circle, with no particles leaving the circle. I would like them to bounce back when they come to close to the wall, but?I don't seem to be able to get this right. ?Would somebody?be able to?give me a hint ? This is my code so far, the particle starts at some point and moves towards the wall, but I don't get the
2010 Jan 07
0
setting different environments
Hallo,
I have a set of S4 and S3 classes together in one script.
While running this script I create a lot of new functions and objects
An example for S3 and S4 classes:
## S3 classes
pt <- list(x=1,y=2)
class(pt) <- "xypoint"
xpos <- function(x, ...) UseMethod("xpos")
xpos.xypoint <- function(x) x$x
ypos <- function(x, ...) UseMethod("ypos")
2009 Oct 28
2
Re ading and Creating Shape Files
Hello R Community,
I have imported a dataset which contain X Y coordinates and would like to
recreate a shape file after some data analysis. What i have done is to
import some taxlot data and join them based on some criteria. I want to
check to see how well the joining went by reviewing the results in GIS.
A couple things. I cant seem to import a shape file correctly using the
maptools
2001 Feb 22
1
Graphical parameters in perspective plot
Hello,
I've a problem for setting graphical parameters in perspective plot
(function persp).
I wonder if it's possible to add some text (function text) on an
existing persp plot USING the axis coordinates.
In fact I want to add some text on a persp plot according to x
coordinates.
I've tried to use text(xcoord,ycoord, label="toto") but the toto text
doesn't appear at
2012 Mar 20
3
error message
Dear all,
Who will bail me out. Iam using R with S-Splancs. Anytime i typed in the syntex, an error will appear eg setwd("C:\\TEMP)
>dat <- read.table(cheshire_fmd.cvs",header=TRUE, sep=",")
> dat.<-read.table(''chesire_fmd.cvs'',header=TRUE,sep='',)
Error: unexpected symbol in "dat.<-read.table(''chesire_fmd.cvs"
>
2009 Mar 01
1
projecting GIS coordinates for analysis with spatstat package
I am working on creating an R package for doing fire department analysis and
am trying to create a function that can display emergency incident
densities. The following code sort of does the trick, but I need a display
that shows the number of incidents per square mile. I believe the code
below shows incidents per square unit (in this case, degrees lat/long).
To solve this problem, I believe
2002 Jun 19
4
drawing ellipses
Hello again,
First I want to thank all the people who answered my question about line
width in graphs. I promise I will learn the 'par' help page by heart for
the end of the month !
I now want to trace some ellipses to emphasize groups of data. I found how
to trace circles with 'symbols()', but no ellipse. I'm planning on writing
my own function based on
2008 Oct 15
3
Removing characters and periods from character strings
Hello R-users,
I have code that gives me the important variables from an analysis. I
need to input these variables into a different analysis. To do this, I
need to modify them slightly... 1) remove all numbers at the end of the
variables, 2) remove all periods.
I tried to do it with the awkward code below. It works to remove all
the numbers, but when I try to remove the period everything
2007 Jan 15
0
spatial correlaton in lme and gls
Hello,
I have multiple observations (replicates) per station...and the stations are distributed in space.
I've applied models using lme and gls from the nlme library. I've messed around with compound symmetry to capture the correlation within stations. My question is.....I have x and y coordinates for each station (the subsamples have nearly the same coordinates)...how do you
2004 Jun 30
0
R crashes (PR#7037)
Full_Name: thomas cornulier
Version: 1.9.0 and 1.9.1
OS: Win XP
Submission from: (NULL) (194.254.155.62)
the following function produces R crashes under windows XP
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
minor 9.1
year 2004
month 06
day
2008 Jul 25
0
Error in vector("double", length)
Please see the code below.
When I try to run the variogram - vg.deft<-variog(rd,uvec=10)
I keep getting this error-
variog: computing omnidirectional variogram
Error in vector("double", length) : vector size specified is too large
Also, when I try to define distance-based neighborhood -
nb.tr=dist.neighbors(tr.locs,2)
I get this error -
Error in vector("double", length) :
2006 May 10
1
kernel smoothing of disease rates at locations
I want to do kernel smoothing on the standardised mortality rates at
specified location(x-y coordinates) and be able to produce contour map.
I've tried to use the package called fields in R (function smooth.2d)
but the problem is I get negative results after smoothing and I do not
understand why? Your contributions will be highly appreciated or if
there is any package that can do this I
2006 Aug 29
2
EOF and CCA analysis
Hello!
I would like to do Empirical Orthogonal functions and
Canonical correlation analysis on satellite data. My
matrices are going to be very big (more than 10,000
locations). Are there limitations in R regarding the
size of the matrix?
thanks a lot
regards
Isidora
2009 Apr 23
1
iteration limit error in gamm and notExp2
hi,
I am trying to run a mixed effect gam using gamm (mgcv)
and I get the following error:
"Error in lme.formula(y ~ X - 1, random = rand, data = strip.offset(mf), : nlminb problem, convergence error code = 1
message = iteration limit reached without convergence (9)"
I've read all about 'notExp2' but since I am not an expert I didn't understand that much. I was
2009 Jan 28
1
Neighborhood distance calculator
Hi all,
I am new to R, hence this question. I have a set of points with X and
Y coordinates. I would like to build an R code to calculate the
distances of points within a specified neighborhood (circular range)
for each point. I would like the code to be a function, so that I can
call the function, specifying parameters (data file, distance), from
another piece of code. Also, I would like the
2009 Apr 04
1
error in trmesh (alphahull package)
Hello R community,
I have cross-posted with r-sig-geo as this issue could fall under either
interest group I believe.
I just came accross the alphahull package and am very pleased I may not
need to use CGAL anymore for this purpose. However, I am having a
problem computing alpha shapes with my point data, and it seems to have
to do with the spatial configuration of my points (which form
2006 Oct 25
1
density plot text
Is there any way of adding text to a density plot? I have had a go using the
text() function but I think the error is because this function doesn't work
with densityplot().
Alternatively, I understand I can achieve pretty much the same result if I
plot a density kernel estimate using plot() (which allows text()), but I do
prefer densityplot().
Also, is it possible to specify the dimensions
2006 Jan 09
1
How to use filled.contour(x,y,z) data for levelplot(z)?
Dear all,
We used the following function to create a spatial plot of a raster image:
filled.contour(xx,yy,zz, color = terrain.colors, nlevels=10,
main=naamjaar, plot.axes = { contour(Xcoord/1000,Ycoord/1000,lim.data,
nlevels = 4, col=4,drawlabels = T, axes = FALSE, frame.plot = FFALSE,
add = TRUE);axis(1); axis(2);