Displaying 20 results from an estimated 10000 matches similar to: "Replace values in data.frame conditional on another data.frame"
2008 Jan 10
3
Cycle Regression Analysis in R?
Hello R community,
Does anyone know of a package that will perform cycle regression
analysis? I have searched the R-help archives etc. but have come up with
nothing so far.
If I am unable to find an existing R package to do so, is there anyone
familiar with fitting sine functions to data. My problem is this:
I have a long time-series of daily SWE estimates (SWE = snow water
equivalence, or
2008 Jan 25
2
Fourier Analysis and Curve Fitting in R
Dear List,
I am attempting to perform a harmonic analysis on a time series of snow
depth, in which the annual curve is essentially asymmetric (i.e. snow
accumulates slowly over time, and the subsequent melt occurs relatively
rapidly). I am trying to fit a curve to the data, however, the actual
frequency is unknown. I have been trying to follow the methods in Peter
Bloomfields text
2008 Jan 29
0
[Fwd: Re: Fourier Analysis and Curve Fitting in R]
well if you want to find the spectral density aka what frequencies
explain most of the variance then I would suggest the spectral
density. This can be implemented with spec.pgram(). This is
conducted with the fast fourier transform algorithm.
a<-ts(data, frequency = 1) #make the time series with 365readings/365days
?spec.pgram
and you should be able to take it from here
This will
2011 Jul 12
2
Deviance of zeroinfl/hurdle models
Dear list, I'm wondering if anyone can help me calculate the deviance
of either a zeroinfl or hurdle model from package pscl?
Even if someone could point me to the correct formula for calculating
the deviance, I could do the rest on my own.
I am trying to calculate a pseudo-R-squared measure based on the
R^{2}_{DEV} of [1], so I need to be able to calculate the deviance of
the full and null
2010 Jun 17
1
plotting radial dendrograms
Dear list,
I am trying to plot a radial dendrogram using the ape package, which
requires my data to be of class 'phylo'. Currently I have my
dendrogram stored as an object of class 'dendrogram' which was
produced from an outside bit of C code, but was made into an object of
class 'igraph.eigenc' and converted to a dendrogram using
'as.dendrogram()' from the igraph
2011 Feb 28
1
mixture models/latent class regression comparison
Dear list,
I have been comparing the outputs of two packages for latent class
regression, namely 'flexmix', and 'mmlcr'. What I have noticed is that
the flexmix package appears to come up with a much better fit than the
mmlcr package (based on logLik, AIC, BIC, and visual inspection). Has
anyone else observed such behaviour? Has anyone else been successful
in using the mmlcr
2011 Mar 31
1
rank of Matrix
Dear list,
Can anyone tell me how to obtain the rank of a sparse Matrix, for
example from package Matrix (class dgCMatrix)? Here is an example of
QR decomposition of a sparse matrix (from the sparseQR class help).
library(Matrix)
data(KNex)
mm <- KNex$mm
str(mmQR <- qr(mm))
Similarly, using the functions/classes from the relatively new
MatrixModels package:
library(MatrixModels)
2008 Jul 02
1
set values in data.frame to NA conditional on another data.frame
Hello List,
Is there a faster way to set values in one data.frame equal to NA
conditional on the corresponding value in another data.frame? Currently
I am using:
> b[is.na(a)] <- NA
where 'a' and 'b' are data.frames of equal size/dimensions, and 'a'
contains NAs but 'b' does not. This is extremely slow as is, as my
data.frames are about 6000 columns by
2011 Jul 19
1
notation question
Dear list, I am currently writing up some of my R models in a more
formal sense for a paper, and I am having trouble with the notation.
Although this isn't really an 'R' question, it should help me to
understand a bit better what I am actually doing when fitting my
models!
Using the analysis of co-variance example from MASS (fourth edition, p
142), what is the correct notation for the
2016 Feb 18
3
Call for testing: OpenSSH 7.2
On 2/17/16 6:02 PM, Darren Tucker wrote:
> On Thu, Feb 18, 2016 at 12:43 PM, Carson Gaspar <carson at taltos.org> wrote:
> [...]
>> Is there a sane way to run just one test script? LTESTS can't be overridden
>> AFAIK...
>
> make t-exec LTESTS=testname
>
> where testname is the name of the specific test script without the .sh
> extension.
Nope, that runs
2001 Apr 25
6
Updated partial auth patch against CVS
Here is a new version of my partial auth patch against the April 24, 2001
CVS image. It fixes a couple of things (thanks to Karl M
<karlm30 at hotmail.com>), and includes support for hostbased auth. It's still
not pretty, but it works. 2 things Karl mentioned aren't fixed:
- auth methods are still hard-coded into servconf.c. Fixing this would
require a lot of work, and all the
2001 Apr 25
2
Makefile.in diff against CVS to prevent man/config rebuild every make
Bug: all .out files get rebuilt every make. This is silly, and breaks make
install if root cannot write to your build dir.
Fix: add dependancy check sop .out files only get rebuilt if the source
file changes
FixBug: if any source file gets changed, all .out files get rebuilt. This
is because man pages and config files both get .out extensions but get
created differently. It's
2016 Feb 18
5
Call for testing: OpenSSH 7.2
On 2/17/16 3:02 PM, Carson Gaspar wrote:
>
> Sadly I'm hitting a different autoconf bug :-(
I was being an idiot - configure was bombing out & I didn't notice (boy
that openssl version error message is loooooong...)
With Mr. Wilson's patch, I still get:
"sandbox-solaris.c", line 22: #error: "--with-solaris-privs must be used
with the Solaris sandbox"
2001 Jun 15
1
EOL problem with channels.h in CVS
channels.h from today's CVS has MS-DOS ^M end-of-line chars.
--
Carson Gaspar - carson at taltos.org
Queen trapped in a butch body
2017 Mar 01
2
dovecot lda bouncing postfix aliases
Recently configured postfix to use the dovecot lda as I wanted to use
sieve. Got that working a few days ago but noticed that I wasn't getting
any emails to aliases. Checked the logs and saw messages like:
Mar 1 08:19:59 carson postfix/lmtp[16949]: 0DCD22016BE: to=<
sales at example.com>, relay=carson.example.com[private/dovecot-lmtp],
delay=0.07, delays=0.01/0.01/0/0.04, dsn=5.1.1,
2020 Jun 08
1
Potential issue with perl-based pattern matching with Unicode characters on Windows R 4.0 and above
Hi everyone,
I've noticed new behavior in `regexpr(..., perl = TRUE)` on Windows with
R4.0 and above with Unicode characters. Here's a minimal example where I'd
expect to see a start value of `5` (as R 3.6.2 and below gives), but R
4.0.0 (and R 4.0.1) now returns:
```
> regexpr("b", "foo\U0001F937bar", perl = TRUE)
#> [1] 6
#>
2017 Mar 02
1
dovecot lda bouncing postfix aliases
Oh wait, you crossposted to the postfix list. Please keep the discussion
there going, you have a postfix issue, not a dovecot one ;)
Tom
On 02-03-17 09:40, Tom Hendrikx wrote:
> Hi,
>
> Typically, postfix should resolve the aliases into user accounts that
> dovecot knows before you even start delivering to dovecot. You probably
> messed something up in the postfix config that
2001 May 02
2
2.9p1?? core dump in auth_log
auth.c:auth_log contains the following code:
authlog("%s %s for %s%.100s from %.200s port %d%s",
authmsg,
method,
authctxt->valid ? "" : "illegal user ",
---> authctxt->valid && authctxt->pw->pw_uid == 0 ? "ROOT" :
authctxt->user,
get_remote_ipaddr(),
2006 Mar 13
4
Trouble Using AR Object based on a Piggyback Query?
Hi,
I''m new to Rails and Ruby and can''t access methods/columns from an
ActiveRecord object that is a "piggy-back" row as described by David
here: http://www.loudthinking.com/arc/000235.html
Via Console I can create the piggyback object but reading attributes
gives "TypeError: cannot convert String into Integer" (this is in
Console and the browser).
2003 Sep 13
3
Trailing dot is not removed from client hostname if HostbasedUsesNameFromPacketOnly is yes
If HostbasedUsesNameFromPacketOnly is set to yes, sshd does not remove
the trailing dot from the client supplied hostname, causing sshd to
attempt to look up "foo.example.com." (note trailing period) in
known_hosts and .shosts instead of "foo.example.com"
Trivial patch attached.
--
Carson
-------------- next part --------------
An embedded and charset-unspecified text was