Use the ta.data.frame() function to create a virtual data frame, which is based on an underlying select query on a table. Elements of the query are specified as input arguments to the function. Properties such as "order by" can be set directly as an object attribute.