Pull out a single variable
Pull a single variable from a data.table as a vector.
pull.(.df, var = -1)
.df |
A data.frame or data.table |
var |
The column to pull from the data.table as:
|
test_df <- data.table( x = 1:3, y = 1:3 ) # Grab column by name test_df %>% pull.(y) # Grab column by position test_df %>% pull.(1) # Defaults to last column test_df %>% pull.()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.