Displaying 20 results from an estimated 4000 matches similar to: "loop does not work"
2002 Jan 16
2
Subsetting data frames without a loop
I KNOW this should be easy, but I'm stuck.
My data frame consists of multiple observations from each of a number of
stations, and what I would like to do is create another data frame that
contains all the variables of the first, but only rows where a certain
variable is at its maximum for the station.
So, for example:
> my.df
stn obs v
1 1 1 0.26400396
2 2 1
2009 Nov 03
3
Weird operator behaviour
Hi,
I have a dataset called 'fish'. fish$Species returns extract 1. When I use
fish$Species != c("CRA","PHC"), i.e. I want all species except "CRA" and
"PHC", I get extract 2 which is blatantly wrong. Can anyone see what I'm
doing wrong?
Regards,
James
EXTRACT 1
> fish$Species
[1] ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB ALB
2009 Jul 27
6
Superscripts and rounding
I am new to the world of R/programming so this may be a really easy question.
I thank you for your patience and help in advance
I would like the characters km^2 to be displayed on the plot subtitle as km
squared - two as a superscript.
I would also like to have the numbers from the data set for longitude and
latitude to be rounded to four decimal places.
Thank you.
plot (
2011 Feb 16
1
Timeseries Data Plotted as Monthly Boxplots
Hello, I'm trying to develop a box plot of time series data to look at the
range in the data values over the entire period of record.
My data initially starts out as a list of hourly data, and then I've been
using this code to make this data into the final ts array.
# Read in the station list
stn.list <- read.csv("/home/kbennett/fews/stnlist3", as.is=T, header=F)
# Read in
2005 Aug 03
0
possibility of R/Maxima linking
Hello,
I'm aware that recently there has been discussion of R joining forces with
an algebra system in some way. Here is my $0.02.
I suggest linking R with Maxima (http://maxima.sf.net).
Maxima is written in Lisp. Maxima objects are pretty simple.
Maxima works on expressions, and almost every expression
is a Lisp list of the form ((op) arg1 arg2 arg3 ...) which
associates an operator and
2007 Nov 14
0
Question about AGNES by Rousseeuw et al. in the package "cluster": How many clusters?
Dear all,
I am no stat wiz and I am just trying to use the AGNES algorithm at my
very modest level of statistical of understanding. I have difficulties
understanding the ouput from AGNES. My question is: how to interpret
the output, especially how do you I know which cluster solution is the
best? In SPSS, an Agglomeration Schedule table is produced and I used to
look at the biggest jump between
2009 Aug 20
1
Understanding R code
What is
1. par.ests <- optimfit$par
2. fisher <- hessb(negloglik, par.ests, maxvalue=maxima);
3. varcov <- solve(fisher);
4. par.ses <- sqrt(diag(varcov));
Thanks a lot,
fit.GEV <- function(maxima)
{
sigma0 <- sqrt((6. * var(maxima))/pi)
mu0 <- mean(maxima) - 0.57722 * sigma0
xi0 <- 0.1
theta <- c(xi0, mu0, sigma0)
#10/5/2007: removed assign() for maxima.nl
2011 Dec 03
2
Downloading tab separated data from internet
Hi all,
I am trying to download some tab separated data from the internet. The data
is not available directly at the URL that could be known apriori. There is
an intermediate form where start and end dates have to be given to get to
the required page.
For example, I want to download data for a station 03015795. The form for
this station is at:
2007 Nov 19
0
Using density() and turnpoint to Identify maxima in data
Hi
I have a large dataset which follows a multimodal distribution. And I
would like to identify the maxima. As the data is obtained from a
stochastic simulation, not all maxima in the data are "real maxima of
the dirstribution" but rather small random fluctuations. Unfortunately,
it is not possible for me to run more simulations to smooth the obtained
distribution.
What I am doing
2008 Dec 12
0
Is there anyone in charge of package wmtsa ?
Here is another occurrence of wmTSA internal error.
My time series is a short breathing cycle (2425-Cyle_9.txt).
Since wmtsa functions that extract extrema seem to expect longer series than I have, I tried the folowing two tricks:
1) I prolong the 1-cycle series on both ends through duplicating the first value (on the left end( and the last value on the right end as any ties as the
1-cycle
2016 Oct 10
2
[arm, aarch64] Alignment checking in interleaved access pass
On Mon, Oct 10, 2016 at 1:14 PM, Renato Golin <renato.golin at linaro.org>
wrote:
> On 10 October 2016 at 19:39, Alina Sbirlea <alina.sbirlea at gmail.com>
> wrote:
> > Now, for ARM archs Halide is currently generating explicit VSTn
> intrinsics,
> > with some of the patterns I described, and I found no reason why Halide
> > shouldn't generate a single
2009 Jan 31
9
Maxima and Ruby Integration
I''m looking to write a javascript heavy clientside program with a
something serverside backend that connects to the free maxima math
program. I have extensive knowledge of ruby on rails, so I would prefer
to call Maxima with ruby, but I don''t know if this is even possible. Its
fairly easy to call Maxima (with a lisp implementation) using ANSI C, it
is a little less easy to
2006 Nov 12
6
Compiz bugs?
Hi,
I've been following the list for a few months but this just my first
post to the list. I've just started to use compiz again a few days ago
and I have a few things (probably bugs) here that bugged me a little
bit. I am not sure whether the bugs is in compiz or somewhere else so it
would be nice if someone could confirm them. Here they are:
- on default window decoration the maximize
2017 Aug 27
2
Fwd: Find maxima of a function
---------- Forwarded message ----------
From: niharika singhal <niharikasinghal1990 at gmail.com>
Date: Sun, Aug 27, 2017 at 11:57 AM
Subject: Re: Find maxima of a function
To: "David Winsemius [via R]" <ml+s789695n4745009h56 at n4.nabble.com>,
"Ismail SEZEN [via R]" <ml+s789695n4744993h60 at n4.nabble.com>, Ulrik Stervbo
<ulrik.stervbo at gmail.com>
2008 Feb 13
0
pdb_new_rid: Failed to find unused RID
We are getting the following error trying to add new samba users or machines:
pdb_new_rid: Failed to find unused RID
Does this have something to do with idmap?
The following command shows a big jump in ID numbers with the last ones having
the same number repeated.
pdbedit -L | awk -F: '{print $2 " " $1 ":" $3}' | sort -n
======
...
3904 bobc:Clara Bob
3905
2008 Jun 25
0
Use plotmath expressions read from a text file in mtext/bquote
Hello R-help List
I am writing some R scripts to create graphs of water quality trends
that will be called by a web service running R. The axis titles will
need to change as the input data (ie. water quality variable) changes
according to a user's choice made via a web page. The way I am
currently passing call-specific parameters to the R script is via a text
file created on the fly by the
2017 Aug 27
0
Fwd: Find maxima of a function
Dear Niharika,
As I said before, the problem is basically an optimization issue. You should isolate the problematic part from the rest of your study. Sometimes, more information does not help to solution. All the answers from us (Ulrik, David, me) are more or less are correct to find a maximum point. Newton?s method is also correct. But after answers, you only say, it didn?t find the right
2017 Aug 26
0
Find maxima of a function
> On 26 Aug 2017, at 16:39, niharika singhal <niharikasinghal1990 at gmail.com> wrote:
>
> Hi,
>
> Thanks for your mail, and time
>
> It is not working for some arguments, when mean value is like >6.
>
>
> case
>
> mc0 <- c(0.08844446,0.1744455,0.1379778,0.1209769,0.1573065,0.
> 1134463,0.2074027)
>
> rv
2017 Aug 27
1
Fwd: Find maxima of a function
I have not followed the history of this thread, but I am quite flummoxed as to why the OP is rewriting code to estimate parameters from an univariate Gaussian mixture model when alternatives such as EMCluster (which generally appears to handle initialization better than MClust) exist. Or perhaps there is more to it in which case I apologize. But I thought that I would make the OP aware of the
2004 Aug 25
0
Eltemette az elefánt-trutyi
--------------------------------------------------
Eltemette az elef?nt-trutyi
Paderborn, N?metorsz?g Friedrich Riesfeldt ?llatkerti gondoz? sz?kreked?ses elef?ntj?nak beadott 22 adag ?llati hashajt?t ?s megetette egy v?ka szederrel, f?g?vel ?s szilv?val. A bedugult vastagb?r? v?g?l els?lt - ?s megfojtotta a gondoz?t 200 font trutyival. A vizsg?lat szerint a 46 ?ves Friedrich megpr?b?lt a beteg