Re: [R] tidyverse repeating error: "object 'rlang_mut_env_parent' not found"

2017-08-14 Thread Szumiloski, John
:35 PM To: Szumiloski, John <john.szumilo...@bms.com> Cc: r-help@r-project.org Subject: Re: [R] tidyverse repeating error: "object 'rlang_mut_env_parent' not found" The most likely explanation is you have a new version of dplyr/tibble and an old version of rlang. Try re-installin

Re: [R] tidyverse repeating error: "object 'rlang_mut_env_parent' not found"

2017-08-14 Thread Szumiloski, John
## end console output Thanks again for any feedback, John John Szumiloski, Ph.D. Principal Scientist, Statistician Pharmaceutical Development / Drug Product Science & Technology NBR105-1-1411 Bristol-Myers Squibb P.O. Box 191 1 Squibb Drive New Brunswick, NJ USA 08903-0191

[R] tidyverse repeating error: "object 'rlang_mut_env_parent' not found"

2017-08-14 Thread Szumiloski, John
UseRs, When doing some data manipulations using the tidyverse, I am repeatedly getting the same error message in now three separate situations. I can write up a reproducible example, but want to lay out the high-level issues in case someone recognizes exactly what is happening here. The

[R] ggplot: restricting legend with multiple geoms and nested groups

2017-02-07 Thread Szumiloski, John
Dear useRs: I am having difficulty understanding how to make a legend in ggplot when I only want certain geoms to be indicated, in the presence of nested groups. An example: require(tidyverse) dat <- tibble(X=rep(seq(4),3), # fake data Y=c(-1.11, -0.46,

[R] Dispatch issue in package check?

2016-04-12 Thread Szumiloski, John
Dear useRs, I am developing a package using RStudio and roxygen markup files. I have run into a problem while checking. The relevant function is a generic S3 statistical function modeled on t.test(), with methods. It returns an object of class "htest" etc. Here Is the (anonymized) relevant

[R] [lattice::xyplot] Using (panel:.)abline with panel.superpose?

2015-10-07 Thread Szumiloski, John
Dear useRs, I recently had a query concerning how to customize the graphics parameters in lattice::xyplot to change not only the color but also the pch symbols, lty and lwd line parameters, etc., within each grouping variable in the plot.

[R] ggplot ternary plot: two quirks

2015-07-28 Thread Szumiloski, John
Dear useRs, I am using the ggtern package to generate ternary plots in ggplot2. I am making a diagram demonstrating how to interpret a ternary plot and am using ggtern::ggtern.multi to generate it. I intend to have three panels, one for the scale and grid for each component. However, is not

[R] panel function revisited

2015-07-09 Thread Szumiloski, John
Dear useRs, I recently posted here (https://stat.ethz.ch/pipermail/r-help/2015-July/430223.html) a query regarding customizing panel functions for lattice::xyplot. I received some helpful replies offline and while I learned some things, they did not get at my issue. However there was a

[R] lattice::subscripts[?] usage question

2015-07-08 Thread Szumiloski, John
pointer or two to good resources explaining the use of the subscripts argument in panel functions? Sarkar's book is fantastic but its treatment of this issue is quite thin. Thanks, John Szumiloski John Szumiloski, Ph.D. Principal Scientist, Statistician Analytical and Bioanalytical Development

[R] Customized interpolating spline?

2013-07-29 Thread Szumiloski, John
Dear useRs, I have a univariate spline application where I have a fixed set of independent variable values. I would like to be able to generate an interpolating spline, given a set of dependent variables, which can easily return the value of the interpolant over its entire range, for use in

[R] ls() with different defaults: Solution;

2013-03-12 Thread Szumiloski, John
Dear useRs, Some time ago I queried the list as to an efficient way of building a function which acts as ls() but with a different default for all.names: http://tolstoy.newcastle.edu.au/R/e6/help/09/03/7588.html I have struck upon a solution which so far has performed admirably. In

Re: [R] ls() with different defaults: Solution;

2013-03-12 Thread Szumiloski, John
-Original Message- From: Hadley Wickham [mailto:h.wick...@gmail.com] Sent: Tuesday, 12 March, 2013 1:34 PM To: Szumiloski, John Cc: r-help@r-project.org Subject: Re: [R] ls() with different defaults: Solution; On Tue, Mar 12, 2013 at 12:59 PM, Szumiloski, John john_szumilo...@merck.com

[R] log= argument to pairs()?

2012-04-30 Thread Szumiloski, John
Dear useRs, I would like to be able to smoothly use the log base graphics argument as an argument to pairs(). Currently in my hands, pairs() accepts the argument, makes transformed plots accordingly, but then stumbles over some annotation commands. Example: begin session

[R] mgcv:gamm: predict to reflect random s() effects?

2011-06-24 Thread Szumiloski, John
Dear useRs, I am using the gamm function in the mgcv package to model a smooth relationship between a covariate and my dependent variable, while allowing for quantification of the subjectwise variability in the smooths. What I would like to do is to make subjectwise predictions for plotting

Re: [R] mgcv:gamm: predict to reflect random s() effects?

2011-06-24 Thread Szumiloski, John
] Sent: Friday, 24 June, 2011 11:43 AM To: Szumiloski, John Cc: r-help@r-project.org Subject: Re: mgcv:gamm: predict to reflect random s() effects? Given that you don't have huge numbers of subjects you could fit the model with `gam' rather than `gamm', using out.gamm - gam( Y ~ Group + s(X

Re: [R] Override col.lines and col.symbol in panel.xyplot with type='b'

2011-04-12 Thread Szumiloski, John
quite a bit with both my own tinkerings and this advice. Thanks again. -John -Original Message- From: Deepayan Sarkar [mailto:deepayan.sar...@gmail.com] Sent: Tuesday, 12 April, 2011 3:31 AM To: Szumiloski, John Cc: r-help@r-project.org Subject: Re: [R] Override col.lines and col.symbol

[R] Override col.lines and col.symbol in panel.xyplot with type='b'

2011-04-11 Thread Szumiloski, John
Dear useRs, I have a longitudinal experiment with several treatment groups, ~20 subjects per group, ~6 timepoints and a continuous dependent variable. I have been successfully been using lattice::xyplot with this data. However, I have been stumped with a particular application of it. I

Re: [R] Generate multivariate normal data with a random correlation matrix

2011-02-09 Thread Szumiloski, John
The knee jerk thought I had was to express the correlation matrix as a generic Choleski decomposition, then randomly populate the triangular decomposed matrix. When you remultiply, you can simply rescale to 1s on the diagonals. Then rmnorm as usual. In R, see ?chol If you want to get fancy,

Re: [R] - how/when/why do you use it?

2010-04-14 Thread Szumiloski, John
I love Patrick Burns' comment on the - operator in R Inferno: If you think you need '-', think again. If on reflection you still think you need '-', think again. Is this in package::fortunes? John John Szumiloski, Ph.D. Senior Biometrician Biometrics Research WP53B-120 Merck Research

[R] optim() argument scoping: passing parameter values into user's subfunction

2009-09-08 Thread Szumiloski, John
Dear useRs, I have a complicated function to be optimized with optim(), and whose parameters are passed to another function within its evaluation. This function allows for the parameters to enter as arguments to various probability distribution functions. However, I am violating some scoping

Re: [R] Easy Recall to get ls(..., all.names=TRUE)?

2009-03-12 Thread Szumiloski, John
-Original Message- From: Rolf Turner [mailto:r.tur...@auckland.ac.nz] Sent: Wednesday, 11 March, 2009 5:09 PM To: Szumiloski, John Cc: r-help@r-project.org Subject: Re: [R] Easy Recall to get ls(..., all.names=TRUE)? On 12/03/2009, at 3:16 AM, Szumiloski, John wrote: Dear useRs

[R] Easy Recall to get ls(..., all.names=TRUE)?

2009-03-11 Thread Szumiloski, John
Dear useRs, I have a utility function which is meant to be a clone of ls(), except with the option all.names=TRUE. Currently however, the function merely consists of a copy of the source code of ls(), except the default value of all.names is different. That approach has the drawback of future