read.files: read.files - Function to read data from CSV or FCS files into...

Description Usage Arguments Value Author(s) References Examples

View source: R/read.files.R

Description

This function allows you to read in sample files (.csv or .fcs) into a list, where each file is saved as a data.table.

Usage

1
read.files(file.loc, file.type, do.embed.file.names, header)

Arguments

file.loc

DEFAULT = getwd(). What is the location of your files?

file.type

DEFAULT = ".csv". What type of files do you want to read. Can be ".csv" or ".fcs".

do.embed.file.names

DEFAULT = TRUE. Do you want to embed each row (cell) of each file with the name name?

header

DEFAULT = TRUE. Does the first line of data contain column names?

Value

Returns a list of data.tables – one per CSV file.

Author(s)

Thomas M Ashhurst, thomas.ashhurst@sydney.edu.au Felix Marsh-Wakefield, felix.marsh-wakefield@sydney.edu.au

References

Ashhurst, T. M., et al. (2019). https://www.ncbi.nlm.nih.gov/pubmed/31077106

Examples

1
data.list <- read.files(file.loc = getwd(), file.type = ".csv", do.embed.file.names = TRUE)

sydneycytometry/Spectre documentation built on March 20, 2021, 2:15 a.m.