Generates missing entries in data.frame/matrix
data.frame
Fraction of missing data in each column
Which columns (name or index) to alter
Should missing occur row-wise (either none or all selected columns are missing)
(Optional) function to be applied on data.frame before return (e.g. na.omit
to return complete-cases only)
Random seed
data.frame