Displaying 20 results from an estimated 8000 matches similar to: "converting strings to expressions"
2006 Aug 31
1
S4 Method Dispatch for Sealed Classes
Hi,
I encounter a problem with method dispatch with S4 classes, using the
'sealed' parameter in setClass.
See that example below:
setClass("X",representation(x="numeric"),sealed=TRUE)
setGeneric("foo",function(x) standardGeneric("foo"))
setMethod("foo",signature("X"),function(x) print("foo(X)"))
x <-
2009 Aug 14
1
post hoc test after lme
Hi!
I am quiet new with R and I have some problems to perform a posthoc test
with an lme model.
My model is the following:
>lme1<-lme(eexp~meal+time, random=~1|id,na.action=na.omit)
and then i try to get a post hoc test:
>summary(glht(lme1,linfct=mcp(meal="Tukey)))
but I get a warning message: Erreur dans as.vector(x, mode) : argument
'mode' incorrect
Thank you for your
2006 Aug 31
1
problem with postscript output of R-devel on Windows
I have developed a problem with the postscript output of plot on Windows. My code still works properly with R 2.3 but, with R 2.4, the white text on red background does not show up. It does, however, show up when output is sent to the screen. Below is my code and sessionInfo.
R version 2.4.0 Under development (unstable) (2006-08-29 r39012)
i386-pc-mingw32
locale:
LC_COLLATE=English_United
2006 Sep 07
5
augPred plot in nlme library
All,
I'm trying to create an augPred plot in the nlme library, similar to the
plot on
p.43 of Pinheiro & Bates (Mixed Effects Models in S and S-Plus) for
their Pixel data.
My data structure is the same as the example but I still get the error
msg below.
> comp.adj.UKV <- groupedData(adj.UKV ~ Time | Patient_no/Lisinopril,
data = comp.adj.UKV.frm, order.groups = F)
>
2007 Jul 16
2
substitute and expression
Hi,
I'm trying to understand whether the use of substitute() is
appropriate/documented for plotmath annotation. The following two
calls give the same results:
> plot(1:10, main = expression(alpha == 1))
> do.call(plot, list(1:10, main = expression(alpha == 1)))
But not these two:
> plot(1:10, main = substitute(alpha == a, list(a = 2)))
> do.call(plot, list(1:10, main =
2005 Nov 16
6
nlme question
I am using the package nlme to fit a simple random effects (variance
components model)
with 3 parameters: overall mean (fixed effect), between subject
variance (random) and
within subject variance (random).
I have 16 subjects with 1-4 obs per subject.
I need a 3x3 variance-covariance matrix that includes all 3 parameters
in order to
compute the variance of a specific linear
2023 Apr 04
1
on lexical scoping....
No, there are lots of situations where that doesn't make sense. You
don't want to have to define local copies of the functions from every
package you use, for example.
I think the takeaway is to learn how R scoping works, and keep things
simple. That's one reason I tend to avoid "tidyverse" packages. There
are a lot of really good ideas in those packages, but
2019 Jun 14
4
inappropriate warning in latticeExtra
This is still not repaired in
R version 3.6.0 Patched (2019-05-17 r76528)
> library(latticeExtra)
> a <- xyplot(1 ~ 1)
> c(a,a)
Warning message:
In formals(fun) : argument is not a function
Can we have it in R-3.6.1 that Peter just announced?
Rich
On Mon, Apr 2, 2018 at 4:08 AM Deepayan Sarkar
<deepayan.sarkar at gmail.com> wrote:
>
> On Fri, Mar 23, 2018 at 7:58 AM,
2006 Sep 15
3
An update method for lists?
Hi,
since lattice uses nested lists in various situations, it has had an
unexported function called updateList for a while, which looks like
> lattice:::updateList
function (x, val)
{
if (is.null(x))
x <- list()
if (!is.list(x))
stop("x must be NULL or a list")
if (!is.list(val))
stop("val must be a list")
xnames <- names(x)
2005 May 05
6
Need some quick help with lattice - barchart
For the following code below, the x-axis ticks are 1,2,3,4,5,6,7 when I was expection them to be 1,2,8,9,10,11,12. Please help me figure out where is the mistake.
library(lattice)
testdata <- as.data.frame(t(structure(c(
1,2005,9.24,6.18,634,
2,2005,8.65,6.05,96,
8,2004,6.81,6.51,16,
9,2004,9.0,7.29,8,
10,2004,8.84,6.18,524,
11,2004,8.54,6.35,579,
12,2004,9.97,6.3,614,
12,2005,8.75,5.84,32,
2020 Jul 14
2
Replication only working one way
OK, tried that. Kicked myself for not trying earlier... but it didn't
work.
In fact, the error has got worse.
Now when I try to go from Genesis to Luke I get:
sudo samba-tool drs replicate luke genesis DC=kcs,DC=local -Udomainadmin
.
.
ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed -
drsException: DsReplicaSync failed (1359, 'WERR_INTERNAL_ERROR')
2023 Nov 08
1
make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe
On Wed, 8 Nov 2023 at 10:56, Christopher W. Ryan via R-help
<r-help at r-project.org> wrote:
>
> Very helpful, Deepayan, and educational. Thank you.
>
> What does NSE stand for?
Non-standard evaluation, used widely in formula-interface functions as
well as the tidyverse. with() in my example is a less nuanced version
of this. See
2008 May 27
1
Fwd: Re: Seeking help with trellis: log scales on xyplot
Deepayan:
Sorry for the additional email, but I'm concerned that I wasn't being clear.
In the end, I would like a graphic that portrays my y-values on a log scale in their native data range. That is to say, I would prefer to see the axis labels as 1000 rather than 3 (log10 of 1000).
Thank you for your kind assistance,
Hobie Perry
St. Paul, MN
Hobie Perry <hobie_perry@yahoo.com>
2019 Dec 06
1
inappropriate warning in latticeExtra
This problem is still present in
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status Under development (unstable)
major 4
minor 0.0
year 2019
month 12
day 03
svn rev 77513
language R
version.string R Under development (unstable)
2023 Nov 14
1
data.frame weirdness
On Tue, 14 Nov 2023 at 09:41, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Also why should that difference result in different behavior?
That's justifiable, I think; consider:
> d1 = data.frame(a = 1:4)
> d2 = d3 = data.frame(b = 1:2)
> row.names(d3) = c("a", "b")
> data.frame(d1, d2)
a b
1 1 1
2 2 2
3 3 1
4 4 2
> data.frame(d1,
2023 Apr 04
1
on lexical scoping....
Dear Duncan,
THanks for the reply...!
So the takeaway is that define the symbol in the same environment before using it right!?
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
________________________________
From: Duncan Murdoch <murdoch.duncan at gmail.com>
Sent: Tuesday, April 4, 2023 8:21 PM
To: akshay kulkarni <akshay_e4 at hotmail.com>; Deepayan Sarkar
2023 Apr 04
1
on lexical scoping....
You can't change the basic way R searches, but you can ask for a
different kind of search. For example, to see if "x" exists, you can use
exists("x")
and it will do the default search, but
exists("x", inherits = FALSE)
will only look in the current environment. The get() function has a
similar argument which returns the value
Unfortunately these
2006 Jan 09
3
two y-axis in xy-plot
Hi there,
I am wondering if it is possible to do an xyplot with two y-axes. I'd like to print two parameters in a time series but they both have different scales.
Which parameter in xyplot can I add to achieve this result?
Thanks a lot for any help.
Antje
[[alternative HTML version deleted]]
2005 Sep 20
3
annotating an axis in bwplot (lattice)
Hi,
I'd like to add, say, the sample size for every group in a bwplot as a
parenthetical annotation to the axis. Here's a sketch:
--8<---------------cut here---------------start------------->8---
require(Hmisc)
age <- sample(1:100, 1000, replace = TRUE)
sex <- gl(2, 8, 1000, c("Male", "Female"))
grp <- gl(4, 6, 1000, letters[1:4])
bwplot(grp ~ age |
2009 Aug 01
3
Transparency and trellis device
Dear R-users,
I am trying to produce trellis (png, or jpeg) graphs with transparent background, but I cannot manage to make that happen. I tried to play around with themes but to no avail. Any advise on the following example will be greatly appreciated:
Thank you
Sebastien
####
library(lattice)
df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4))
settings <- standard.theme()