sp_frame: 'sp_frame' objects

View source: R/sp_frame.R

sp_frameR Documentation

sp_frame objects

Description

Turn sampling frames or analysis data into an sp_frame object or transform sp_frame objects back into their original object.

Usage

sp_frame(frame)

sp_unframe(sp_frame)

Arguments

frame

A sampling frame or analysis data

sp_frame

An sp_frame object.

Details

The sp_frame() function assigns frame class sp_frame to be used by summary() and plot(). sp_frame() objects can sometimes clash with other sf and tidyverse generics, so un_spframe() removes class sp_frame(), leaving the original classes of frame intact.

Value

An sp_frame object.

Examples

NE_Lakes <- sp_frame(NE_Lakes)
class(NE_Lakes)
NE_Lakes <- sp_unframe(NE_Lakes)
class(NE_Lakes)

USEPA/spsurvey documentation built on Jan. 26, 2024, 4:18 p.m.