Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G <- TRUE ## G is an argument of a larger function
- PPP <- function(){
- ## calculate x and y
- ## plot(x, y)
- }
- if(G==TRUE){ PPP() } else { PPP (NA) } ######## Would "NA" stop the function from
- running if(G==F)
Add Comment
Please, Sign In to add comment