Displaying 20 results from an estimated 1000 matches similar to: "R-beta: losing attributes in binary ops"
1998 Jan 03
1
R-beta: NextMethod(.Generic) bug
I'm a day-old R newbie (but a war-weary S veteran), with couple of
first-day questions:
In R 0.61, this code fails.
Ops.test <- function(e1,e2)
{
e1 <- NextMethod(.Generic)
e1
}
x <- 4
class(x) <- "test"
y <- x < 3
The error message is "Error in NextMethod(.Generic) : negative length vectors
are not allowed.".
I assume it is a bug.
2023 Oct 15
2
Create new data frame with conditional sums
Under the hood, sapply() is also a loop (at the interpreted level). As
is lapply(), etc.
-- Bert
On Sun, Oct 15, 2023 at 2:34?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> That's very helpful and instructive, thank you!
>
> Jason Stout, MD, MHS
> Box 102359-DUMC
> Durham, NC 27710
> FAX 919-681-7494
> ________________________________
> From: John
2011 Sep 10
2
[Bug 937] ssh2 pubkey auth broken by user:style syntax
https://bugzilla.mindrot.org/show_bug.cgi?id=937
Patric Stout <patric.stout at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |patric.stout at gmail.com
--- Comment #1 from Patric Stout <patric.stout at gmail.com> 2011-09-10
2003 Sep 29
0
PRI protocols
Hey all,
Does anyone have a reference for the differences between the various US PRI
protocols (Nat'l 1, Nat'l 2, 5E, DMS, etc)? I'm specifically interested in
features available via signalling. I've read that National ISDN, for the most
part, has a smaller subset of features than any other protocol, but I can't find
a chart or good reference that details them all.
The
2012 Apr 27
1
multivariate xts merge question
Hi,
I have an xts starting with a number of columns (currency pairs see below),
then I add new ones which are derived from existing ones (like adding the
moving average of a column) by merging the new columns one by one. These
get the name of the column they are calculated from concatenated with ".1".
All done by merge.xts, easy.
Now, I have a function (procState below) which generates
2012 Nov 07
9
Executing SAS Codes in R
Is there a way of executing SAS codes in R environment?
Peter Maclean
Department of Economics
UDSM
[[alternative HTML version deleted]]
2023 Oct 14
1
Create new data frame with conditional sums
That's very helpful and instructive, thank you!
Jason Stout, MD, MHS
Box 102359-DUMC
Durham, NC 27710
FAX 919-681-7494
________________________________
From: John Fox <jfox at mcmaster.ca>
Sent: Saturday, October 14, 2023 10:13 AM
To: Jason Stout, M.D. <jason.stout at duke.edu>
Cc: r-help at r-project.org <r-help at r-project.org>
Subject: Re: [R] Create new data frame with
2023 Oct 14
2
Create new data frame with conditional sums
Well, here's one way to do it:
(dat is your example data frame)
Cutoff <- seq(0, .15, .01)
Pop <- with(dat, sapply(Cutoff, \(p)sum(Totpop[Pct >= p])))
I think there must be a more efficient way to do it with cumsum(), though.
Cheers,
Bert
On Sat, Oct 14, 2023 at 12:53?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> This seems like it should be simple but I
2007 Feb 24
7
Creation of additional image within a domU
Chaps,
Perhaps this question is a little basic for this list but I''m not
really sure of the simplest method or best tool for the job.
I''ve created some images with `dd=/dev/zero ....` and I''m using them
for the domUs now. Some of them have been running for a few months
with no probs. Trouble is that I''d like to create a separate partition
within the domU.
2010 Dec 08
2
Puppet in a virtual environment
Morning chaps,
From my understanding the puppet master must have a hostname of
"puppet". Is this correct? I''d like to be able to call this box
whatever I like. I think that I can do that within
/etc/puppet/puppet.conf.
--
John Maclean
MSc (DIC)
Enterprise Linux Systems Engineer
--
You received this message because you are subscribed to the Google Groups "Puppet
2013 Apr 25
1
Assigning a variable value based on multiple columns
Hi All,
I'm hoping someone can help me with a relatively simple problem. Take the following dataset:
ID Diabetes ESRD HIV Contact
1 0 0 NA 0
2 1 0 NA 0
3 NA 1 0 0
4 0 NA 0 1
5 1 1 1 0
I want to generate a
2011 Jul 11
3
fitdistr() Error
I am trying to estimate a gamma function using real data and I am getting the
following error messages.
When I set a lower limit; the error message is "L-BFGS-B needs finite values of
fn"
?
For other method the error message is:
Error in optim(x = c(0.105286666666667, 0.3472275, 2.057625, 0.329675,? :
? non-finite finite-difference value [1]
The codes works fine for simulated data
2023 Oct 13
1
Create new data frame with conditional sums
This seems like it should be simple but I can't get it to work properly. I'm starting with a data frame like this:
Tract Pct Totpop
1 0.05 4000
2 0.03 3500
3 0.01 4500
4 0.12 4100
5 0.21 3900
6 0.04 4250
7 0.07 5100
8 0.09
2010 Apr 06
2
kickstart + domU for static IP
I've set up a local webserver to store kickstart files for domUs. All
parameters are respected apart from the network settings. DomU always
gets DHCP. Can any one help to unwrap this one? Does one add hostname,
ip, netmask and gateway values to the /etc/xen/blah.cfg file?
# ---- domU kickstart file ----#
url --url http://192.168.1.120/centos/5/os/i386
lang en_US.UTF-8
keyboard uk
network
2013 Feb 22
3
Help xyplot
Hi Mackay and anybody
(a) Is it possible to select randomly (let say five grids) and plot?
(b) Is it possible to plot five nearest grid in one figure?
The original question and improved codes:
#I am ploting gridded time series data. I would like the actual lat
#and lon value appear on the graph-if possible inside the graph as
#numbers. If there is also more elegant ways to plot the graphs I
2005 Dec 09
1
Residuals from GLMMs in the lme4 package
Hello there
This is the first time I have used r-help message board so I hope I have got
the right address.
I am trying to check the residuals of a GLMM model(run using the package
lme4). I have been able to check the residiuals of REMLs in lme4 using the
following:
m1<-lmer(vTotal~Week+fCollar+ (1|fCat), collars)
res<-resid(m1)
plot(res)
qqnorm(res)
library(MASS)
par(mfrow=c(2,3))
2011 Jul 17
1
FOMULATING TIME SERIES DATA FROM DATA FRAME
I am estimating Value at Risk using PerfomanceAnalytics package. The?variables are stored in a data frame. I formated the data variables using zoo() and as.xtx() but it is not working. The working example is below.
##########################################################?
reguire(zoo)
require(PerformanceAnalytics)
reguire(xts)
?
year<- c(1991-12-30, 1992-12-30, 1993-12-30, 1994-12-30)
R1
2012 Jun 13
1
Indexing Grouped Data
I need help in indexing grouped data. In this excample (df1 data), the first child had a first immunization at age 2. The second child had the first, second and third immunization at age 5,10, and 12, the third child had first and second immunization at age 4 and 6 and the fourth child had the first immunization at age 2. I have df1 and I need to create df2 with and "ind' variable that
2011 Nov 16
1
HELP DATA CLIPPING AND DATA OVERLAY ON A MAP
I have csv data that extend beyond the area I want for an existing map. I want using the boundaries of the polygon shape file as a cookie cutter so that I can overlay the csv data on map without including anything outside the map boundaries and create a dbf file or shapefile of the clipped data . The reproducible example:
###############################################
library(RColorBrewer)
1999 Jan 29
1
Re: follow-up
From r-help-owner at stat.math.ethz.ch Fri Jan 29 13:40 NZD 1999
Date: Thu, 28 Jan 1999 16:38:36 -0800 (PST)
From: "Gregory R. Warnes" <warnes at biostat.washington.edu>
To: royle at penguin.irm.r9.fws.gov
cc: R comments <r-help at stat.math.ethz.ch>
Subject: [R] Re: follow-up
MIME-Version: 1.0
.RData files are *not* machine-independent! Thus, it doesn't mean