powered by
Pull a single variable from a data.table as a vector.
pull.(.df, var = NULL)dt_pull(.df, var = NULL)
dt_pull(.df, var = NULL)
A data.frame or data.table
The column to pull from the data.table. If NULL, pulls the last column.
# NOT RUN { test_df <- data.table( x = c(1,2,3), y = c(4,5,6)) test_df %>% pull.(y) # }
Run the code above in your browser using DataLab