clear-methods | R Documentation |
Clear one field or all fields of the message and set them to their default values
signature(object = "Message", field = "missing")
Clear all fields of the message and set them to their default values
signature(object = "Message", field = "character")
Clear the field identified by its name
signature(object = "Message", field = "integer")
Clear the field identified by its tag number
signature(object = "Message", field = "numeric")
Clear the field identified by its tag number
signature(object = "Message", field = "raw")
Clear the field identified by its tag number
message <- new( tutorial.Person, name = "dddd", email = "eeeeeee", id = 1 )
writeLines( as.character( message ) )
clear( message )
# clear works also as a pseudo method :
message$clear()
writeLines( as.character( message ) )
# clear single fields
message <- new( tutorial.Person, name = "dddd", email = "eeeeeee", id = 1 )
message$clear( "name" )
writeLines( as.character( message ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.