Displaying 20 results from an estimated 7000 matches similar to: "More efficient way to use ifelse()? - A follow up"
2010 May 26
4
More efficient way to use ifelse()?
# This is more about trying to find a more effecient way to code some
simple vectorized computations using ifelse().
# Say you have some vector representing a factor with a number of
levels (6 in this case), representing the location that samples were
collected.
Population <- gl( n=6, k=5,length=120, labels =c("CO", "CN","Ga","KO",
"Mw",
2012 Jul 17
0
Kernel smoothing ("ks" package)
Dear R users,
I'm trying to determine local population centers in a region through kernel
smoothing. What I have is population density in each neighborhood, which
can be presented as point density. So in my data set “pop”, I have three
columns for about 1000 neighborhoods: x (x coordinate), y (y coordinate),
and z (population density at xy). I searched R documentations and found
that the
2012 Jul 12
1
identifying local maxima
Dear R users,
I have created a Loess surface in R, in which x is relative longitude by
miles, y is relative latitude by miles, and z is population density at the
neighborhood level. The purpose is to identify some population centers in
the region. I'm wondering if there is a way to determine the coordinates
(x,y) of each center, so I can know exactly where they are.
Let me use the
2006 Dec 08
0
Fwd: Problems with repository amd64
---------- Forwarded message ----------
From: Maximi89 <maximi89@claud-center.cl>
Date: 08-dic-2006 18:44
Subject: Problems with repository amd64
To: wine-users@winehq.org
Hi, i put the link in my Synaptic, when i recharge, this put this
message...
http://wine.budgetdedicated.com/apt/dists/edgy/main/binary-amd64/Packages.gz
: 404 Not Found
i don't know what do, i was googling, but no
2007 Aug 21
1
Output from while and for loop
Hello,
I am new and am having a hard time getting the proper syntax for output
from loops. I am working on a simulation to generate a null expectation of
bee behavior. Pieces of it work. The part that I am having specific
difficulty is in output of a vector from within the while loop that I am
using. Basically the simulation works as such: I have a starting point
and a neighbor matrix and a
2001 Feb 18
3
OpenSSH 2.5.0p1 vs. SA_RESTART
Not all OSes have SA_RESTART (for instance, SunOS does not).
Also, for the non-SA_RESTART case in scp.c sa.sa_flags
was not being initialized (noted by dworkin at village.org).
- todd
--- scp.c.DIST Sat Feb 17 17:56:33 2001
+++ scp.c Sat Feb 17 17:57:59 2001
@@ -1224,8 +1224,9 @@
struct sigaction sa;
sa.sa_handler = updateprogressmeter;
sigemptyset((sigset_t *)&sa.sa_mask);
+
2010 Apr 20
1
multiple plots problem
hello,
i try to plot 3 graphs which have the same x.axis underneath each other. i'd
like the plots to be aligned without margings between the boxes and draw a
single x axis beneath the lowest plot.
i managed to get the alignment by setting par(mar), but the middle box is
stretched
and i cant't figure out how to get around this. par(pin) was my guess, but
this doesn't do the job
2010 Oct 16
0
Spatstat Tessellation error
Hello R Users,
I am trying to do a quadrat count defined by covariate properties in
spatstat. I have read my elevation raster into R (from ascii) and converted
to class "im" for use in spatstat.
Now I have point data of class "ppp" which window is the same extent as the
elevation image. I can conveniently plot the image and the points on the
image as follows:
2010 Oct 20
0
Spatstat: tessellation problems.
Hello R Users,
I am trying to do a quadrat count defined by covariate properties in
spatstat. I have read my elevation raster into R (from ascii) and converted
to class "im" for use in spatstat.
Now I have point data of class "ppp" which window is the same extent as the
elevation image. I can conveniently plot the image and the points on the
image as follows:
2008 Mar 24
1
Great difference for piecewise linear function between R and SAS
Dear Rusers,
I am now using R and SAS to fit the piecewise linear functions, and what
surprised me is that they have a great differrent result. See below.
#R code--Knots for distance are 16.13 and 24, respectively, and Knots for y
are -0.4357 and -0.3202
m.glm<-glm(mark~x+poly(elevation,2)+bs(distance,degree=1,knots=c(16.13,24))
+bs(y,degree=1,knots=c(-0.4357,-0.3202
2012 Jul 19
1
3-d kernel smooth by the "kde" function
Dear R community,
I'm having hard time to understand the kde function in "ks" package. Let me
use a 3-dimensional kernel smooth example to explain my question using the
elevation data in geoR.
### here is what I did ###
library(ks)
require(geoR)
data(elevation)
elev.df <- data.frame(x = elevation$coords[,"x"], y =
elevation$coords[,"y"], z = elevation$data)
2010 Sep 06
1
Correct coefficients from treatment contrasts?
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable;
2000 Mar 15
3
scp problem
On the box moni, I have
rpm -q openssh
openssh-1.2.1pre25-1us
on the box karadi, I have
rpm -q openssh
openssh-1.2.3pre2-2
On moni, I do/get:
scp "wierdlm at karadi:11Lecture/lecture.tex" .
wierdlm at karadi.msci.memphis.edu's password:
bash: scp: command not found
What can be wrong? Do I have to specify the remote path to scp? (It
is in $PATH for wierdlm at
2009 May 07
3
[PATCH] ocfs2_cluster_lock: code cleanup for redundant assignment
In fs/ocfs2/dlmglue.c:ocfs2_cluster_lock(), after label 'out:' the code is:
1373 if (wait && arg_flags & OCFS2_LOCK_NONBLOCK &&
1374 mw.mw_mask & (OCFS2_LOCK_BUSY|OCFS2_LOCK_BLOCKED)) {
1375 wait = 0;
1376 if (lockres_remove_mask_waiter(lockres, &mw))
1377 ret = -EAGAIN;
1378
2010 Dec 09
0
nnet for regression, mixed factors/numeric in data.frame
Hi there,
this is more a comment and a solution rather than a question, but I
thought I'd post it since it cost some time to dig down to the issue and
maybe someone else could run into this.
I'm using the nnet function for a regression task. I'm inputting the
following data frame:
> 'data.frame': 4970 obs. of 11 variables:
$ EC25 : num 67.5 67.6 68 69 69.5 ...
$
2005 Jan 21
1
Why does nobody answere??? WG: username map - same problem
regards
Mathias Wohlfarth EDV-Beratung
Thomas-Mann-Str.1
53111 Bonn
Tel. +49 172 / 53 45 591
+49 1801 / 777 555 33 01
Fax +49 228 / 9469181
Email mathias.wohlfarth@mw-eb.de
----- Weitergeleitet von Mathias am 21.01.2005 10:40 -----
Mathias.Wohlfarth@mw-eb.de
Gesendet von: samba-bounces+mathias.wohlfarth=mw-eb.de@lists.samba.org
19.01.2005 17:35
An: Bj?rn-Sverre N?ttum
2023 Dec 09
1
Linear model and approx function
Dear all;
I have a dataframe with several columns. The columns are the elevation,
volume and the area of the cells (which were placed inside a polygon). I
have extracted them from DEM raster to calculate the volume under polygon
and the elevation for a specific volume of the reservoir.
> head(x6,2)
Elevation Vol Area V_sum A_sum
1 2145 13990.38 85.83053 13990.38
2024 Apr 10
1
Question regarding reservoir volume and water level
Dear all;
Thank you for your reply.
David has explained an interesting method.
David I have DEM file of the region and I have extracted the xyz data from
that.
Also I can extract bathymetry data as xyz file.
I have calculated the storage (volume) of reservoir at the current
elevation.
But the method I have used to calculate the volume is different from your
method. I have crop DEM by the reservoir
2012 Feb 19
2
barplot with more than 1 variable
Dear R listers,
I am trying to produce a simple (for a stata user) barplot with 4
countries on the x axis, each country observed in 2 subsequent years
and 3 variables.
Basically, I should have three bars for each year for each country. I
am attaching the chart I made in Stata, but I am not sure you'll
manage to see it!
I did the following:
#here I create the data-set TUSE2. The vectors mw, st
2004 Sep 10
1
FLAC 1.0.5 beta1 released
Just an FYI...
On my RH8 Duron 800MHz box, after running
./configure --enable-3dnow && make && make check && make install
I received the following errors:
===================
2 of 8 tests failed
===================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/home/mw/flac-1.0.5_beta1/test'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory