unflatten {Distance}R Documentation

Unflatten flatfile data.frames

Description

Sometimes data is provided in the flatfile format, but we really want it in mrds format (that is, as distance data, observation table, sample table and region table format). This function undoes the flattening, assuming that the data have the correct columns.

Usage

unflatten(data)

Arguments

data

data in flatfile format (a data.frame)

Value

list of four data.frames: distance data, observation table, sample table, region table.

Author(s)

David L Miller


[Package Distance version 1.0.3 Index]