clear-methods(RProtoBuf)
clear-methods()所属R语言包:RProtoBuf
Clear a field or all fields of the message and set them to their default values
清除字段或所有字段的消息,并将它们设置为它们的默认值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Clear one field or all fields of the message and set them to their default values
清除一个字段或所有字段的消息,并将它们设置为它们的默认值
方法----------Methods----------
signature(object = "Message", field = "missing") Clear all fields of the message and set them to their default values
signature(object = "Message", field = "missing")清除所有领域的消息,并将它们设置为它们的默认值
signature(object = "Message", field = "character") Clear the field identified by its name
signature(object = "Message", field = "character")清除它的名字所确定的领域
signature(object = "Message", field = "integer") Clear the field identified by its tag number
signature(object = "Message", field = "integer")清除该字段识别标签号码
signature(object = "Message", field = "numeric") Clear the field identified by its tag number
signature(object = "Message", field = "numeric")清除该字段识别标签号码
signature(object = "Message", field = "raw") Clear the field identified by its tag number
signature(object = "Message", field = "raw")清除该字段识别标签号码
实例----------Examples----------
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 ) )
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|