Added underhanded hack for as.data.frame in EditData