[R] How to get the input of a function right?
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Mar 22 16:55:25 CET 2012
This is quite difficult without being able to see the function f .....
On Thu, Mar 22, 2012 at 11:43 AM, stella <dorotheabusse at yahoo.de> wrote:
> I wrote a function with three inputs fun(x,y,z).
> x is a matrix of three vectors combined with cbind. e.g.
> y is a vector e.g
> z is a real number e.g.
> If a give the function an input like this, I get 'NA' in return. If I give
> the function a vector e.g c(1,2,3) instead of 'x' the function works just
> Does anyone has an idea why the function would not except 'x' as an input?
> Thank you very much!
> View this message in context: http://r.789695.n4.nabble.com/How-to-get-the-input-of-a-function-right-tp4495879p4495879.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help