updatePtrSet {ptairMS} | R Documentation

## update a ptrSet object

### Description

When new files are added to a directory which has already a ptrSet object associated, run `updatePtrSet` to add the new files in the object. The information on the new files are added to object with the same parameter used for the function `createPtrSet` who has created the object. `updatePtrSet` also delete from the ptrSet deleted files in the directory.

### Usage

    updatePtrSet(ptrset)

### Arguments

`ptrset` | a ptrset object

### Value

teh same ptrset object than ininput, but completed with new files and without deleted files in the directory

### Examples

    dirRaw <- system.file("extdata/exhaledAir", package = "ptairData")
    exhaledPtrset <- createPtrSet(dir=dirRaw, setName="exhaledPtrset",
    mzCalibRef = c(21.022, 60.0525), fracMaxTIC = 0.7, saveDir = NULL )
    ##add or delete files in the directory
    # exhaledPtrset<- updatePtrSet(exhaledPtrset)

[Package ptairMS version 1.2.0 Index]