DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
If Statement |
> if (!file.exists("mydata.RData")) { write(myiris, file="mydata.RData") } |
The body of the if statement is a single statement (so in the above example the curly brackets are not necessary). The curly brackets are used to collect a number of statements into a single compound statement as the body for the if.