LoadCollection: Loading and saving CommunityCollection objects

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/community_collection.R

Description

LoadCollection and SaveCollection are functions for loading and saving codeCommunityCollection objects to text files.

Usage

1
2

Arguments

collection

an object of class CommunityCollection.

dir

a directory.

...

other values to LoadCommunity or SaveCommunity.

Details

The Community objects in collection are saved to a directory named communities inside dir. The order of the collection is not saved. Any existing data in dir is ignored.

Value

LoadCollection returns a new CommunityCollection.

Author(s)

Lawrence Hudson

See Also

CommunityCollection, OrderCollection, LoadCommunity, SaveCommunity

Examples

1
2
3
4
5
6
7
data(pHWebs)
temp.path <- tempfile()
SaveCollection(pHWebs, temp.path)
pHWebs.loaded <- LoadCollection(temp.path)
pHWebs.loaded <- OrderCollection(pHWebs.loaded, 'pH')
unlink(temp.path, recursive=TRUE)
identical(pHWebs, pHWebs.loaded)    # TRUE

cheddar documentation built on Feb. 13, 2020, 5:07 p.m.