### Example re-printing results for selected rows
library(outliertree)
data("hypothyroid")
### Fit model
otree <- outlier.tree(hypothyroid,
nthreads=1,
outliers_print=0)
### Store predictions
pred <- predict(otree,
hypothyroid,
outliers_print=0,
return_outliers=TRUE,
nthreads=1)
### Print stored predictions
### Row 531 is an outlier, but 532 is not
print(pred, only_these_rows = c(531, 532))
Run the code above in your browser using DataLab