Re: [R] Question about expression parser for "return" statement

2016-11-14 Thread Wolf, Steven
Just to add on a bit, please note that the return is superfluous. If you write this: normalDensityFunction = function(x, Mean, Variance) { # no "return" value given at all (1/sqrt(2*pi*Variance))*exp(-(1/2)*((x - Mean)^2)/Variance) } normalDensityFunction(2,0,1) ...you get the

Re: [R] Question about expression parser for "return" statement

2016-11-14 Thread Wolf, Steven
I stand corrected. I have been chided in the past for not explicitly returning my output by someone claiming it is not best practices. -Steve On Mon, 2016-11-14 at 12:22 -0500, Duncan Murdoch wrote: On 14/11/2016 11:26 AM, Wolf, Steven wrote: Just to add on a bit, please note

[R] Data file verification protocol

2014-03-18 Thread Wolf, Steven
Hi R users, This isn’t a R-specific issue, per-se, but I thought that this list would have some helpful input on this topic. First, a bit of background. I am working on a project which is interested in following approx 1000 students each semester, and collects about 15 different measurements

Re: [R] CCA no scores for some constraining variables

2014-02-02 Thread Wolf, Steven
This seems like the ideal case for a MWE. If we can't reproduce your error, we can't help diagnose it! Steve --- Steven Wolf Research Associate CREATE for STEM Institute Michigan State University On Feb 1, 2014, at 6:44 AM, Paresys, Lise lise.pare...@wur.nl wrote: Dear all, I am