Displaying 20 results from an estimated 100 matches similar to: "newbie question on str output"
2009 Jan 26
0
why two diff. se in nlsList?
Hi list,
In the object returned by summary.nlsList, what's the difference between "coefficients" and "parameters"? The have the same "Estimate", different se (therefore t value), but same p values.
R.2.8.0 on winxp with nlme_3.1-89
Thanks,
...Tao
+++++++++++++++++++++++++++++++++++++++++++++++++
> library(nlme)
> fm1 <- nlsList(uptake ~
2011 Jan 11
1
as.environment.list provides inconsistent results under torture
Hello,
Using R-devel (rev 53950), I get inconsistent results with
as.environment( VECSXP ) when gctorture is on.
Consider:
a <- list( aa = rnorm, bb = runif )
gctorture(TRUE)
as.environment( a )
The last line sometimes produces the correct environment, but sometimes
I get errors. Here are the three situations:
# good
> as.environment( a )
<environment: 0x100b1c978>
# not good
2014 Oct 17
1
Making parent.env<- an error for package namespaces and package imports
I'd like to propose a change to the R language so that calling
'parent.env<-' on a package namespace or package imports is a runtime
error.
Currently the documentation warns that it's dangerous behaviour and
might go away:
The replacement function ?parent.env<-? is extremely dangerous as
it can be used to destructively change environments in ways that
violate
2008 Apr 14
5
Equivalent to a BY command in SAS
Hi,
I'm very new to R and absolutely love it. Does anyone know how to use
something in R that functions like a BY command in SAS?
For example, let's say you have a variable x, and you want to see the mean.
Easy...
> mean(x)
But what if you want to see the mean of x conditional on another discrete
variable? My best attempts so far are something like...
> mean(x, y_cat=1)
2016 Aug 05
2
Extra copies of objects in environments when using $ operator?
My understanding is that R will not make copies of lists if there is
only one reference to the object. However, I've encountered a case
where R does make copies, even though (I think) there should be only
one reference to the object. I hope that someone could shed some light
on why this is happening.
I'll start with a simple example. Below, x is a list with one element,
and changing that
2016 Aug 05
0
Extra copies of objects in environments when using $ operator?
On Fri, 5 Aug 2016, Winston Chang wrote:
> My understanding is that R will not make copies of lists if there is
> only one reference to the object. However, I've encountered a case
> where R does make copies, even though (I think) there should be only
> one reference to the object. I hope that someone could shed some light
> on why this is happening.
>
> I'll start
2015 Jan 14
2
Is the tcltk failure in affylmGUI related to R bug 15957
I maintain the package affylmGUI. It works when installed on many
previous versions of R. I have today tested exactly the same code under
R-2.15.3, R-3.0.2, R-3.1.0, R-3.1.1, R-3.1.2 and R-devel.
I have also tested the versions of affylmGUI downloaded by biocLite for
each version of R and the same result applies.
I have no errors under 2.15.3, 3.0.2, 3.1.0 and 3.1.1. The following
error
2015 Jan 14
0
Is the tcltk failure in affylmGUI related to R bug 15957
Seems unlikely that that particular bug is involved. I seem to recall some change related to inadvertent variable capture in .TkRoot$env (?). At any rate, we currently have
> parent.env(.TkRoot$env)
<environment: R_EmptyEnv>
which used to be
> parent.env(.TkRoot$env)
<environment: R_GlobalEnv>
as a result, this won't work any more because R_EmptyEnv has no operators and
2015 Jan 18
1
Is the tcltk failure in affylmGUI related to R bug 15957
Thanks Peter and Dan for your replies.
After learning a bit more about tcltk and environments etc. I have replaced
Try(n <- evalq(TclVarCount <- TclVarCount + 1, .TkRoot$env))
with
Try(n <- .TkRoot$env$TclVarCount <- .TkRoot$env$TclVarCount +1L)
as you suggest.
It now works for both R-3.1.1 and R-3.1.2+
(My understanding is that the Try function is there to put a GUI box
2023 Nov 15
1
saveRDS()/readRDS() on environments
Dear r-devel,
I was surprised to see that saveRDS() and readRDS() work quite well with
environments, see below:
```
z <- 3 # in global env
y <- new.env()
y$a <- 1
x <- new.env(parent = y)
x$b <- 2
saveRDS(x, "x.RDS")
# in a new session
x <- readRDS("x.RDS")
y <- parent.env(x)
x$b
#> [1] 2
y$a
#> [1] 1
parent.env(y)
#> <environment:
2011 Jan 11
0
[Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption
On Tue, Jan 11, 2011 at 2:41 PM, Romain Francois
<romain@r-enthusiasts.com>wrote:
> Le 11/01/11 19:57, Romain Francois a écrit :
>
> Le 11/01/11 19:46, Douglas Bates a écrit :
>>
>>> On Tue, Jan 11, 2011 at 12:27 PM, Dominick
>>> Samperi<djsamperi@gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Jan 11, 2011 at
2012 Oct 22
3
Error: object 'CO2' not found
Hello:
I am new on R, this is the first time I work with it,
I am trying to run some R example to get learn of them,
but, I have a problem when running the example below:
http://stat.ethz.ch/R-manual/R-patched/library/datasets/html/zCO2.html
CO2.Qn1 <- CO2[CO2$Plant == "Qn1", ]
SSasympOff(CO2.Qn1$conc, 32, -4, 43) # response only
Asym <- 32; lrc <- -4; c0 <- 43
2010 Sep 16
1
Survival Analysis Daily Time-Varying Covariate but Event Time Unknown
Help!
I am unsure if I can analyze data from the following experiment.
Fish were placed in a tank at (t=0)
Measurements of Carbon Dioxide were taken each day for 120 days (t=0,...120)
A few fish were then randomly pulled out of the tank at different days,
killed and examined for the presence of a disease
T= time of examination in days from start (i.e. 85th day), E = 0/1 for
nonevent/event
My
2010 Jul 23
2
re-ordering bwplot
Dear list:
I'm using bwplot to compare concentrations by location and treatment as in:
# using built in data
bwplot( conc ~ Type : Treatment, data = CO2 )
I would like the order of the plots to be: 3,4,1,2. I can't seem to figure this out with index.cond or permc.cond.
Any help is appreciated!
Brad Eck
[[alternative HTML version deleted]]
2017 Oct 08
2
Manipulations with CO2 dataset on R
Hi,
I just started a new course this semester on R, I never used it in my life and i'm stuck on these questions from 3 days, it would be really nice if someone could explain me the answers with the relative commands.
thanks a lot in advance
The following 7 questions are based on the CO2 dataset of R.
1) How many of the plants in CO2 are Mc2 for Plant?
2) How many are either Mc2 or Mn2?
2006 Mar 15
1
filtering in aggregate
Hello all,
I have a data frame with year, month, species, fishing gear and catch
(Y, M, S, F, C) and I want the sum of C by Y for species "A" and fishing
gear "trawl".
I tried things like aggregate(C[S=="A" & F=="trawl"], list (Year =
Y[S=="A" & F=="trawl"]), fun=sum), but it didn't worked.
To overcome this problem I did
2013 Mar 10
0
max row
HI,
Using
c11<- 0.01
c12<- 0.01
c1<- 0.10
c2<- 0.10
One possible problem is that:
dim(res5)
#[1] 513? 20
res6<-aggregate(.~m1+n1+m+n,data=res5[,c(1:6,9:12,21:24)] ,max)
#Error in `[.data.frame`(res5, , c(1:6, 9:12, 21:24)) :
?# undefined columns selected
A.K.
________________________________
From: Joanna Zhang <zjoanna2013 at gmail.com>
To: arun <smartpink111 at
2006 Nov 28
2
Problem with pairs() in nlme
Dear r-helpers,
After successfully running
require(nlme)
vfr.lmL <- lmList(
estimate ~ (slant + respType + visField + hand)^2 | subject, vfr
)
pairs(vfr.lmL, id = 0.01, adj = -0.5) # Pinheiro & Bates (p. 141)
produces the following error:
Error in sprintf(gettext(fmt, domain = domain), ...) :
object "form" not found
Any guesses as to what I may have done wrong?
2010 Jul 16
2
aggregate(...) with multiple functions
hi all - i'm just wondering what sort of code people write to
essentially performa an aggregate call, but with different functions
being applied to the various columns.
for example, if i have a data frame x and would like to marginalize by
a factor f for the rows, but apply mean() to col1 and median() to
col2.
if i wanted to apply mean() to both columns, i would call:
aggregate(x, list(f),
2012 May 07
1
How can I brake a label in two lines when using expression()?
I making an xyplot and the y label is too long and needs to be in two rows, but when I brake it there is a huge gap between the last text string and the expression, and I can't get rid of it. Any ideas?
Data:
structure(list(Temp = c(8L, 8L, 8L, 8L, 8L, 8L, 12L, 12L, 12L,
12L, 12L, 12L), CO2 = c(380L, 380L, 380L, 750L, 750L, 750L, 380L,
380L, 380L, 750L, 750L, 750L), Treat = structure(c(3L,