collapse: Collapse objects and vectors so they are ready to be written...

Description Usage Arguments Value Examples

Description

These functions take lists, vectors or data.frames and collapse them using "\t" or "\n" depending on if the object is a vector, list, or data.frame

Usage

1
2
3

Arguments

df

The data.frame or Gadget file to collapse attributes on for collapse_df

gf

The Gadget file to collapse entries on for collapse_entries

Value

If df is a data.frame returns a character vector of the df pasted together by "\t" for rows and "\n" for columns. If a Gadget file it will return the same Gadget file with each element collapsed by "\t" if the length is >1

Examples

1
2
time <- make_gadget_timefile(1985, 2015, "quarterly")
collapse_entries(time)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.