car {libbib} | R Documentation |
Takes a vector and returns the first element
Equivalent to Lisp's car
function
car(x)
x |
A vector |
Originally for use as a reduction function in split_map_filter_reduce
Returns first element of vector
car(c(8, 6, 7, 5, 3, 0, 9)) # 8
mt <- as.data.table(mtcars)
dt_del_cols(mt, "cyl", "disp", "hp")