subsample function

Subsample a data frame object