map_chr_first: From a list of dataframes, get the first element of a...

Description Usage Arguments Examples

View source: R/utils.R

Description

Useful to get a srting with which to name a list after split().

Usage

1

Arguments

.x

A list

var

A variable of .x from which to get the first element.

Examples

1
2
3
4
x <- data.frame(x = 1:10, y = letters[2:1])
.x <- split(x, x$y)
.x
map_chr_first(.x, "y")

maurolepore/handy documentation built on May 21, 2019, 1:37 p.m.