format.pt2mod | R Documentation |
Implementation of basic S3 methods, such as, format
, print
, as.raw
and as.character
(
see usage section for a complete overview). See vignette('s3class')
for an overview
of ProTrackR2 S3 class objects. See usage section for an overview of available methods.
## S3 method for class 'pt2mod'
format(x, ...)
## S3 method for class 'pt2mod'
print(x, ...)
## S3 method for class 'pt2pat'
format(
x,
padding = " ",
empty_char = "-",
fmt = getOption("pt2_cell_format"),
...
)
## S3 method for class 'pt2command'
format(x, fmt = getOption("pt2_effect_format"), ...)
## S3 method for class 'pt2command'
print(x, max.print = 10L, ...)
## S3 method for class 'pt2pat'
print(x, sep = " ", show_header = TRUE, show_row = TRUE, ...)
## S3 method for class 'pt2pat'
as.character(x, ...)
## S3 method for class 'pt2celllist'
as.raw(x, ...)
## S3 method for class 'logical'
as.raw.pt2celllist(x, compact = TRUE, ...)
## S3 method for class 'pt2pat'
as.raw(x, ...)
## S3 method for class 'logical'
as.raw.pt2pat(x, compact = TRUE, ...)
## S3 method for class 'pt2cell'
format(
x,
padding = " ",
empty_char = "-",
fmt = getOption("pt2_cell_format"),
...
)
## S3 method for class 'pt2cell'
print(x, ...)
## S3 method for class 'pt2cell'
as.character(x, ...)
## S3 method for class 'pt2command'
as.raw(x, ...)
## S3 method for class 'pt2cell'
as.raw(x, ...)
## S3 method for class 'logical'
as.raw.pt2cell(x, compact = TRUE, ...)
## S3 method for class 'pt2samp'
format(x, ...)
## S3 method for class 'pt2samp'
print(x, ...)
## S3 method for class 'pt2patlist'
format(x, ...)
## S3 method for class 'pt2patlist'
print(x, ...)
## S3 method for class 'pt2celllist'
format(x, ...)
## S3 method for class 'pt2celllist'
print(x, ...)
## S3 method for class 'pt2samplist'
format(x, ...)
## S3 method for class 'pt2samplist'
print(x, ...)
## S3 method for class 'pt2mod'
as.raw(x, ...)
## S3 method for class 'pt2samp'
as.raw(x, ...)
## S3 method for class 'pt2samp'
as.integer(x, ...)
## S3 method for class 'pt2celllist'
length(x, ...)
## S3 method for class 'pt2command'
length(x, ...)
x |
Object to apply S3 method to. See 'usage' section for allowed object types. |
... |
Passed on to other methods. |
padding |
A |
empty_char |
A |
fmt |
Experimental feature to format a |
max.print |
Maximum number of elements to be printed. |
sep |
A separator |
show_header |
A |
show_row |
A |
compact |
Should the pattern be formatted using a compact notation (as used for
file storage), or a none-compact format as used by the player? This can be
set with the |
The following is returned by the different methods:
format
: a formatted character
representation of the object
print
: same as format
as.character
: same as format
as.raw
: a raw
representation of the object. In many cases it inherits the same
class as x
as.integer
: converted raw
8 bit sample data to signed pulse code modulation integer
values between -128 and +127.
length
returns number of elements in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.