Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

clearSamples

Clear all samples from module


Description

Remove all PTSamples from a PTModule object.

Usage

## S4 method for signature 'PTModule'
clearSamples(mod)

Arguments

mod

A PTModule object from which all samples needs to be removed.

Details

Conform the original ProTracker, this method removes all patterns PTSamples from a module. You keep all patterns (PTPattern) and patternOrder info.

Value

Returns a copy of object mod in which all samples are removed.

Author(s)

Pepijn de Vries

See Also

Examples

data(mod.intro)

## 'clear.mod' is a copy of 'mod.intro' without the
## samples. It still holds all pattern tables and
## pattern order info.
clear.mod <- clearSamples(mod.intro)

ProTrackR

Manipulate and Play 'ProTracker' Modules

v0.3.7
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2020-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.