rename.stansim_collection: Rename a stansim_collection object

Description Usage Arguments Value Examples

View source: R/rename-methods.R

Description

Change the collection_name value of a \ code"stansim_collection" object.

Usage

1
2
## S3 method for class 'stansim_collection'
rename(object, new_name)

Arguments

object

An object of S3 class stansim_collection.

new_name

New object name. Must be of type character.

Value

An S3 object of class stansim_collection.

Examples

1
2
3
4
5
## Not run: 
# rename a stansim_collection to "new collection name"
rename(collection, "new collection name")

## End(Not run)

Ewan-Keith/rstansim documentation built on May 6, 2019, 4:08 p.m.