Guest User

Untitled

a guest
Feb 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. G <- TRUE ## G is an argument of a larger function
  2.  
  3. PPP <- function(){
  4.  
  5. ## calculate x and y
  6. ## plot(x, y)
  7.  
  8. }
  9.  
  10. if(G==TRUE){ PPP() } else { PPP (NA) } ######## Would "NA" stop the function from
  11. running if(G==F)
Add Comment
Please, Sign In to add comment