unnest_cat: Transform the sheet to have one species, method, or language...

View source: R/data_manipulation.R

unnest_catR Documentation

Transform the sheet to have one species, method, or language per row

Description

When entering species, method, and programming languages into the spreadsheet, sometimes one paper or dataset has multiple of those, and those are separated by a semicolon. This function unnests that and returns a data frame with one row per category of interest.

Usage

unnest_cat(sheet, col_use, other_cols = NULL)

Arguments

sheet

The tibble for the spreadsheet.

col_use

Column to unnest. Tidyeval is supported.

other_cols

Character vector of other columns to include.

Value

A data frame with one row per category of interest. NAs are removed.


pachterlab/museumst documentation built on April 20, 2024, 11:26 p.m.