4.1 Interactive tables with DT
Often we’ll take a peak at data frames by using head
or tail
, or by printing the entire data frame. Sometimes it can be useful to display a data frame as a interactive table that we can play around with. We can do this using datatable
from the DT
package. With its default usage, we can sort by any column and search for any term.