getWriteProtected.Sequence: Check if the object is write protected

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if the object is write protected. Write protected objects cannot be modified through get/set methods and virtual fields.

Usage

1
2
## S3 method for class 'Sequence'
getWriteProtected(this, ...)

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
       # create an object
       o<-Sequence()
       # toggle write protection
       o$writeProtected<-TRUE
       # check if it's write protected
       getWriteProtected(o)
       # check write protection via virtual field
       o$writeProtected

 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.