View source: R/split-map-filter-reduce.R
car | 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
split_map_filter_reduce
car(c(8, 6, 7, 5, 3, 0, 9)) # 8
mt <- as.data.table(mtcars)
dt_del_cols(mt, "cyl", "disp", "hp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.