change dataFrame to as.data