createGridForCategories: Create a 'tibble' tibble describing a rectangular grid...

View source: R/createGridForCategories.R

createGridForCategoriesR Documentation

Create a tibble tibble describing a rectangular grid defined by two sets of categories

Description

Function to create a tibble tibble describing a rectangular grid defined by two sets of categories.

Usage

createGridForCategories(xcats, ycats)

Arguments

xcats
  • vector of categories for x-axis

ycats
  • vector of categories for y-axis

Details

The returned tibble will have the following columns:

  • xc - x-axis category labels (factor levels)

  • yc - y-axis category labels (factor levels)

  • id - id (character) for rectangle with center xc,yc [="(xc,yc)"]

  • x - rectangle corner location (numeric) along x-axis

  • y - rectangle corner location (numeric) along y-axis

Value

a tibble. See Details.


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.