write_simlr_data_frames: Write a list of data frames to disk with SiMLR-specific...

View source: R/multiscaleSVDxpts.R

write_simlr_data_framesR Documentation

Write a list of data frames to disk with SiMLR-specific naming convention

Description

This function writes each data frame in a list to a separate CSV file on disk, using the names of each data frame to create unique filenames.

Usage

write_simlr_data_frames(data_list, file_prefix)

Arguments

data_list

A list of data frames to write to disk.

file_prefix

A character string to use as the prefix for the filenames.

Value

No return value, called for side effects.

Examples

mysim <- list(simlrX = list(v = list(
  data1 = data.frame(matrix(rnorm(147 * 171), nrow = 147, ncol = 171)),
  data2 = data.frame(matrix(rnorm(156 * 171), nrow = 156, ncol = 171))
)))
write_simlr_data_frames(mysim$simlrX$v, "output")

stnava/ANTsR documentation built on April 13, 2025, 4:10 a.m.