idf <- ida.data.frame('IRIS')
is.ida.data.frame(idf)
#Select only certain rows or columns
#The following creates a ida.data.frame that only selects rows with
#Species=='setosa' and the first three columns of the table
idf2 <- idf[idf$Species=='setosa',1:3]
#Define new columns based on existing ones
idf$SepalLengthX <- idf$SepalLength+1
idf$SepalLengthY <- ifelse(idf$SepalLengthX>4.5,idf$ID,10)
#Take a look at the newly defined columns
head(idf)Run the code above in your browser using DataLab