Displaying 20 results from an estimated 10000 matches similar to: "More efficient way to use ifelse()?"
2010 May 26
1
More efficient way to use ifelse()? - A follow up
# Thanks again to everyone who provided suggestions.
# I was curious about which approaches would be the fastest... so a
little benchmarking
# My approach was by far the worst :)
# The approach suggested by Duncan Murdoch and Peter Langfelder, based
on indexing , was by far the fastest (~ 66times faster than using
nested ifelse() ). All the details can be found below for those who
are
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
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
2004 Jul 06
3
Improving effeciency - better table()?
Hi,
I've been running some simulations for a while and the performance of R
has been great. However, I've recently changed the code to perform a sort
of chi-square goodness-of-fit test. To get the observed values for each
cell I've been using table() - specifically I've been using cut2 from
Hmisc to divide up the range into a specified number of cells and then
using
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);
+
2006 Feb 13
2
Plotting contour & filled.contour in one graph
Dear All,
I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
2009 Mar 11
2
How to monthly,daily,yearly average
Sorry, this is my first time to post.
I have a big data set: first colume is date (ex: 2008-2-150, the second is time (10:30:00), and the following columes are variaty measurement data. Every 30 min, I have one data.
I want to find an effecient way to calculate the hourly, daily, monthly and yearly average, and plot them, and eventually use these average data to do further analysis.
Thanks!
2014 Jan 11
1
USB boot problems on Gigabyte GA-M55Plus-S3G
On Sat, 2014-01-11 at 06:31 -0500, Gene Cumm wrote:
> On Sat, Jan 11, 2014 at 12:12 AM, Ronald F. Guilmette
> <rfg at tristatelogic.com> wrote:
>
> > Unfortunately, regardless of whether I perform Step #4 (i.e. running
> > the "makeboot.bat" script) while logged in as a user with Admin privs,
>
> > Accessing physical drive: Access is denied.
2014 Jan 11
4
USB boot problems on Gigabyte GA-M55Plus-S3G
In message <BLU0-SMTP145A44932CB6CC2DB4621568BB30 at phx.gbl>,
Ady <ady-sf at hotmail.com> wrote:
>Recent (testing) Clonezilla versions include changes related to
>booting problems, so there are valid reasons to try the very latest
>version available. At the time I am writing this email, Clonezilla
>Live 2.2.1-22 is the latest available (at this moment, under
2018 Jan 16
3
Steps to create spatial plots
Hi Roman,
Thanks for your reply. For the spatial coordinates layer, I just have
coordinates of the upper left corner, numbers of rows and columns of the
spatial map, and grid cell size. How to create a spatial layer of
coordinates from this data? Thanks.
On Mon, Jan 15, 2018 at 3:26 PM, Roman Lu?trik <roman.lustrik at gmail.com>
wrote:
> You will need to coerce your data into a
2010 Mar 31
1
trying to understand lme() results
Hi, I have very simple balanced randomized block design where I total have 48 observations of a measure of weights of a product, the product was manufactured at 4 sites, so each site has 12 observations. I want to use lme() from nlme package to estimate the standard error of the product weight.
So the data look like:
MW site
1 54031 1
2 55286 1
3 54396 2
4 52327 2
5 55963
2018 Jan 16
0
Steps to create spatial plots
>From your description, I am **guessing** that you may not want a "spatial
map" (including projections) at all, but rather something like a level
plot. See ?levelplot in the lattice package for details. Both I am sure
ggplot2 has something similar.
Apologies if I havemisunderstood your intent/specifications.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is
2004 Jan 14
2
wich tools
Hello
I have two DSL modems witch are connected to my isp, in future my boss
want to buy another connection via DSL modem. Then i will have 3 DSL
modems. With every DSL modem i get 3x8 IP`s (netmask 248) from my ISP,
now i have question how to configure gateway wich tools should i use.
Because ip route and next hop via. wich i use now makes his work fine
but with new kernels there is an error
2011 Sep 21
7
Slow Directory Access after upgrade to 3.5.6
Upgraded to Samba 3.5.6 from 3.5.2.
Samba is running as a standalone server on a box that was upgraded from
Slackware 13.1 to Slackware 13.37.
All Win XP Pro and Win 7 Pro clients can connect to the workgroup and browse
shares and folders exactly as before; however, many complain of intermittent
pauses, slowdowns and "Not Responding" messages when traversing directories.
The samba server
2004 May 31
1
small question
Hello frieds,
do I need to do 'net rpc join -U Administrator'
(to selfjoin the localhost to the domain)
if I have samba3.0.4 running
in ROLE_DOMAIN_PDC and with ldapsam-Backend
and want to use winbindd for ntlm_auth squid authentification?
--
Best regards,
Malte mailto:malte.woelky@gmx.de
_________________
Malte Woelky -=[SkyNet]=-
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)
2012 Aug 07
5
summing and combining rows
Hello,
I have a data set that needs to be combined so that rows are summed by a
group based on a certain variable. I'm pretty sure rowsum() or rowsums()
can do this but it's difficult for me to figure out how it will work for
my data based on the examples I've read.
My data are structured like this:
Plot SizeClass Stems
12 Class3 1
12 Class4
2009 Jul 14
2
hi friends, is there any wait function in R
hi,
is there any wait function in R. I am running one R script to plot
many graphs it is in the for loop. its showing no error but its not
plotting well I think i can solve this problem with a wait function.
Please help me in this regards. If u need any clarification about
programme. u can find the script below.
best regards,
Deepak.M.R
Biocomputing Group
University of Bologana.
#!/usr/bin/R
2011 Nov 28
2
Retain parts of a matrix
Hi all,
I'm working to apply a function that will generate a matrix of results only
when a specific criteria is met.
I want my final results to be a matrix with both the values that meet the
criteria (the results of the function), and those that to do in the same
positions in the matrix (the original numbers).
Here's a sample of what I would like to do:
t.mean.1.c <- c(-15, -20,
2010 Jan 21
1
use R from python
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100121/95fb8869/attachment.pl>