save_files: Save a list of files

Description Usage Arguments Value Author(s) Examples

Description

Save a list of matrices to the .csv or .txt file format.

Usage

1
2
3
4
5
6
7
8
9
save_files(
  files,
  names,
  path = paste0(getwd(), "/"),
  file.type = ".csv",
  sep = ",",
  row.names = FALSE,
  col.names = FALSE
)

Arguments

files

a list of matrices with numeric data.

names

a vector of names for files. Required.

path

a path to save files in. Required, but if left blank saves to current working directory.

file.type

one of ".csv", ".tsv" or ".txt". Defaults to .csv

sep

the seperator to use for separating entries across columns. One of "," for comma separated values, " " for space separated values, or "'\'t" for tab separated values. Defaults to ","

row.names

Rowwise names to be used as the first column if desired. Defaults to none (row.names=FALSE).

col.names

Column names to be used as the top row if desired. Defaults to none (col.names=FALSE).

Value

returns nothing, but saves files to a directory.

Author(s)

Brandon Vaughan

Examples

1
2
3
**## Not run:**
save_files(cormats, subj.names, path="C:/Users/YourName/Documents/R/")
## End(**Not run**)

abnormally-distributed/rsfcNet documentation built on March 8, 2020, 5:32 p.m.