找回密码
 注册
查看: 1477|回复: 0

R语言 Rlibstree包 StringSet-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-22 20:55:01 | 显示全部楼层 |阅读模式
StringSet-class(Rlibstree)
StringSet-class()所属R语言包:Rlibstree

                                        The Opaque StringSet reference class
                                         不透明的StringSet参考类

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This is a class that represents a reference to a set of strings in the libstree library.  The underlying data structure can be thought of as a character vector in which the order is not meaningful. The set is a collection of strings.  In R, we can  compute its length and index its elements via the [ operator.  This is convenient, for example, when sampling from the set.  However because the order is  not respected when constructing the set from a character vector, one cannot treat this as a regular character vector in  R.
这是一个类,它代表了一组字符串在libstree库的参考。底层数据结构可以被看作是在该命令是没有意义的字符向量。集是一个字符串的集合。在R,我们可以计算出它的长度和索引它的元素,通过[运营商。这是很方便,例如,当从一套采样。然而,因为订单是不尊重的建设从特征向量集时,可以不治疗作为常规字符向量在R


类的对象----------Objects from the Class----------

The preferred way to create a StringSet is via the generic StringSet function.
创建一个StringSet的首选方式是通过通用的StringSet功能。


插槽----------Slots----------




ref: Object of class "externalptr".  This is a reference to the internal C-level object that represents the string set in libstree.
ref类"externalptr"的对象。这是一个内部的C级对象代表在libstree设置字符串的引用。


方法----------Methods----------




SuffixTree signature(x = "StringSet"): ...
SuffixTreesignature(x = "StringSet")...




[ signature(x = "StringSet", i = "numeric"): ...
[signature(x = "StringSet", i = "numeric")...




append signature(x = "StringSet", values = "character"): ...
追加signature(x = "StringSet", values = "character")...




coerce signature(from = "StringSet", to = "character"): ...
要挟signature(from = "StringSet", to = "character")...




lapply signature(X = "StringSet", FUN = "function"): ...
lapplysignature(X = "StringSet", FUN = "function")...




length signature(x = "StringSet"): ...
长度signature(x = "StringSet"):...


作者(S)----------Author(s)----------


Duncan Temple Lang <duncan@wald.ucdavis.edu>



参考文献----------References----------

http://www.omegahat.org/Rlibstree

参见----------See Also----------

StringSet
StringSet


举例----------Examples----------



words = c("stemming", "boing", "springs")
set = StringSet(words)

lapply(set, function(x) nchar)

# Check that we can accept additional arguments[检查,我们可以接受额外的参数]
lapply(set, substring, 1, 2)



转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-22 15:40 , Processed in 0.020554 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表