I am having some difficulty in using the function else in R.
When I input ?else, I didn’t get any help about the function else.
When I run the following program:
i=1
if(i>1){print("aa")}
else{print("bb")}
the else didn’t work. Can someone tell me the reasons?
to get help type
look at the paragraph in help
or
will presumably work for you.
would also work. The key is to let the parser know to expect more input.