raw.fixInvalidFile: Fix invalid data filename

View source: R/raw.fixInvalidFile.R

raw.fixInvalidFileR Documentation

Fix invalid data filename

Description

Fix invalid data filename

Usage

raw.fixInvalidFile(
  filename,
  addInstrument = "",
  addUser = "",
  addProject = "",
  addSample = "",
  renameFile = FALSE
)

Arguments

filename

name of file

addInstrument

instrument to be added

addUser

user to be added

addProject

project to be added

addSample

sample to be added

renameFile

if TRUE file will be renamed

Value

returns fixed filenames

Examples

f = raw.findFiles(raw.getSamplePath(), instrument='MM160622SI1')
print(f)
f.new = raw.fixInvalidFile(f, addInstrument='vsm')
print(paste("Old name:",f))
print(paste("New name:",f.new))

thomasgredig/RAWdataR documentation built on Nov. 6, 2024, 9:46 a.m.