as.data.frame.patch: Convert a patch object to a data frame

View source: R/conversion.R

as.data.frame.patchR Documentation

Convert a patch object to a data frame

Description

..

Usage

## S3 method for class 'patch'
as.data.frame(x, row.names = NULL, ..., long = TRUE)

Arguments

x

object of class 'patch'

row.names

name of patch. Note that this will be a column in the returned data.frame. If NULL, name is set to 1. If a vector of length greater than 1 is given, only the first name is used.

...

any other arguments. not used

long

whether the data.frame should be long (1 row for each variable in the object of class 'patch'), or wide (a single row where each variable in the object of class patch 'patch' is a column.)

Value

data.frame

Author(s)

Sangeeta Bhatia


sangeetabhatia03/multipatchr documentation built on Aug. 13, 2024, 4:05 p.m.