R docs for as.data.frame
as.data.from: remove discretes.as.factor for consistency