next up previous
Next: Libraries in R Up: R, S, and Splus Previous: Regressing multiple outcomes on

If/else syntax issues

I've had trouble with the syntax; I think you need

if(...){

...

} else{

}

Namely you need to have the 'else' on the same line as the end '}' of the 'if'



Chris Paciorek 2012-01-21