Re: [R] Apply a multi-variable function to a vector

2016-09-12 Thread Stephen Kennedy
Hello Jeff, I kept fooling with this, and also looking around the web and I actually found something on stackoverflow, which does what I had in mind. You mentioned that you would rarely use someting like this, but the link is:

Re: [R] Apply a multi-variable function to a vector

2016-09-10 Thread Stephen Kennedy
Thanks. I have gotten some replies. One problem was that I was not passing the names of the vectors to expand.grid. I didn't think I had to do that and that caused problems with do.call. I wanted to just define the vectors of variables values, the function, func, and then pass that to

[R] Apply a multi-variable function to a vector

2016-09-09 Thread Stephen Kennedy
Hello, I would like to define an arbitrary function of an arbitrary number of variables, for example, for 2 variables: func2 <- function(time, temp) time + temp I'd like to keep variable names that have a meaning in the problem (time and temperature above). If I have a vector of values

Re: [R] power.t.test threading on 'power'

2014-10-03 Thread Stephen Kennedy
J. Kennedy, Ph.D. Director, Research Development Prollenium Medical Technologies, Inc. 138 Industrial Parkway North Aurora, ON L4G 4C3 Canada +1 (905) 508-1469 X223 step...@prollenium.com On Oct 1, 2014, at 6:46 PM, peter dalgaard pda...@gmail.com wrote: On 01 Oct 2014, at 14:29 , Stephen

[R] power.t.test threading on 'power'

2014-10-01 Thread Stephen Kennedy
Simple question. A vector of ‘number of observations’ can be input to power.t.test, and a vector of ‘power’ s is output. But, inputting a vector of powers generates an error. Am I missing something? Vector of ’n’ s power.t.test(n=c(28,29,30), delta=2, sd=3, sig.level=0.05, type=two.sample,

Re: [R] power.t.test threading on 'power'

2014-10-01 Thread Stephen Kennedy
: On 01.10.2014 14:29, Stephen Kennedy wrote: Simple question. A vector of ‘number of observations’ can be input to power.t.test, and a vector of ‘power’ s is output. But, inputting a vector of powers generates an error. Am I missing something? Vector of ’n’ s power.t.test(n=c

Re: [R] power.t.test threading on 'power'

2014-10-01 Thread Stephen Kennedy
On Oct 1, 2014, at 6:46 PM, peter dalgaard pda...@gmail.com wrote: On 01 Oct 2014, at 14:29 , Stephen Kennedy step...@prollenium.com wrote: Simple question. A vector of ‘number of observations’ can be input to power.t.test, and a vector of ‘power’ s is output. But, inputting a vector

[R] different plot symbols in key using xyplot

2009-10-25 Thread Stephen Kennedy
I'm using xyplot in a very simple way---a scatter plot of several data sets. I'm having a problem getting auto.key to display different point characters. The following produces a plot that employes different colors, all with pch(1), for the different groups, with a matching key.

[R] dataedit

2008-07-18 Thread Stephen Kennedy
To Whom It May Concern: Are there more examples / information regarding the use of 'dataedit'? If so, where might I find these? Regards, Steve Kennedy __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do