Learn R Programming

grandR (version 0.2.6)

DefaultSlot: Get or set the default slot for a grandR object.

Description

The default slot is used by default by many functions including GetData,GetTable or FitKinetics

Usage

DefaultSlot(data, value = NULL)

DefaultSlot(data) <- value

Value

Either the name of the default slot for DefaultSlot(data) or the grandR data object having the new default slot

Arguments

data

A grandR object

value

the name of the new default slot

Details

The default slot can be set either by data<-DefaultSlot(data,"norm") or by DefaultSlot(data)<-"norm".

See Also

Slots

Examples

Run this code
sars <- ReadGRAND(system.file("extdata", "sars.tsv.gz", package = "grandR"),
                  design=c("Cell",Design$dur.4sU,Design$Replicate))

DefaultSlot(sars)
sars <- Normalize(sars)     # default behavior is to update the default slot
DefaultSlot(sars)
DefaultSlot(sars)="count"

Run the code above in your browser using DataLab