Get a specific value from a function in R -


I have this question, and sorry, I know that this may be a silent question but I do not know if it How to do . I am trying to understand a code in R

I have 6 different scripts, each one function, and then I save some output and work with those outputs.

This value, a vector whose name is:

  u_cp is something like: return (u_cp)   

Finally they do this: <<>

How do I get the UCP value again?

Will I return this value to a function and then use it?

OK, if this is a function then the last expression (in fact, return statement is unnecessary). What do you do, you have a function f , which takes input, is called x and you call it and value it (if you stored it in some way Do one) for a variable or pass it on the rest of your computation one example below

  & gt; F & LT; -Function (X) X + 2> R & lt; -f (2) & gt; R [1] 4 & gt; F (2) +4 [1] 8    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -