write_nested_list: Write out a nested list

Description Usage Arguments Examples

View source: R/exported_functions.R

Description

Write a nested list into a directory structure

Usage

1
2
3
write_nested_list(nested_list, directory, save_as_object = FALSE,
  object_prefix = directory, extension = if (save_as_object) ".Rdata" else
  ".txt", ...)

Arguments

nested_list

A nested list.

directory

Character string. Directory name to which to write the structure.

save_as_object

Logical. Save as R object?

object_prefix

Character. Prefix of R object. Only used if save_as_object = TRUE.

extension

Character. File extension. Default is ".txt".

...

Arguments passed to write.table

Examples

1
2
3
4
data("all_linkages_list_P1_subset")
write_nested_list(nested_list = all_linkages_list_P1_subset,
                  directory = "all_linkages_P1",
                  sep="\t")

mdavy86/polymapR documentation built on May 25, 2019, 9:35 p.m.