This function reads files of current folder into a list of data.frames

extract_data(
  file_type = ".fcs|.FCS",
  sampling = FALSE,
  sample_size = 10,
  SpecifyList = FALSE,
  f_list
)

Arguments

file_type

A regular expression for the file extension. Only file names which match the regular expression will be returned. Data types suported are .FCS, .CSV and .TXT

sampling

Logical. Should a sample of size sample_size extracted from the list of files? If FALSE the function will extract all files of the list. Default is FALSE

sample_size

Numeric. If sampling=TRUE this would be the sample size.

SpecifyList

Logical. If TRUE, a vector of file names shold be given in f_list. Default is FALSE

f_list

If SpecifyList=TRUE, this should be a vector of file names.

Value

Returns a list of data.frames of the extracted data.