Learn R Programming

ggpattern (version 1.0.1)

is_polygon_df: Test if object is polygon_df or NULL

Description

Test if object is polygon_df or NULL

Usage

is_polygon_df(x)

Value

TRUE if object is polygon_df or NULL

Arguments

x

object

Examples

Run this code
  df <- create_polygon_df(x = c(0, 0, 1, 1), y = c(0, 1, 1, 0))
  is_polygon_df(df)

Run the code above in your browser using DataLab