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

R语言 track包 track.summary()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 11:21:02 | 显示全部楼层 |阅读模式
track.summary(track)
track.summary()所属R语言包:track

                                         Return a summary of the basic properties of tracked objects
                                         返回跟踪对象的基本属性的总结

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

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

Return a summary of the basic properties of tracked objects: name, class, size, dimensions (if any), and creation, modification and access times.
返回跟踪对象的基本属性:名称,类别,规格,尺寸(如果有的话),以及创建,修改和访问时间的总结。


用法----------Usage----------


track.summary(expr, pos = 1, envir = as.environment(pos), list = NULL, pattern = NULL,
        glob = NULL, all.names = FALSE,
        times = track.options("summaryTimes", envir=envir)[[1]],
        access = track.options("summaryAccess", envir=envir)[[1]],
        size=TRUE, cache=FALSE, full=FALSE)



参数----------Arguments----------

参数:expr
: An unquoted variable name  
:带引号的变量名称


参数:pos
: The search path position of the environment being tracked (default is 1 for the global environment)
:路径中的位置被跟踪的环境(对全球环境的默认值是1)


参数:envir
: The environment being tracked.  This is an alternate way (to the use of pos=) of specifying the environment being tracked, but should be rarely needed.
:环境被跟踪。这是一种备选的方式(使用pos=)被跟踪指定的环境,但应很少需要。


参数:list
: A character vector of variable names to summarize  
字符向量的变量名来概括


参数:pattern
: A regular expression specifying variable names to summarize  
正则表达式指定变量名来概括


参数:glob
: A regular expression specifying variable names to summarize  
正则表达式指定变量名来概括


参数:all.names
: should names beginning with a period be included (like all.names in ls)
:应用了一段开头的名字(如all.namesls)


参数:times
: An integer 0..3 specifying how many time columns to return (in order of: modify, create, access)  
:一个整数0 .. 3指定返回多少时间列(顺序为:修改,创建,访问)


参数:access
: An integer 0..3 specifying how many access-count columns to return for each writes and accesses (0=none, 1=total, 2=prior and current session, 3=prior, current session and total)
:一个整数0 .. 3指定多少访问数列返回为每个写入和访问(0 =无,1 =总2 =先前和当前的会话,3 =之前,本届会议,并总)


参数:size
: (logical) include the size column?  (The values in this column are system dependent, so make it easy to exclude so that test output is constant across systems.)
(逻辑)包括size列? (此列中的值是系统相关的,因此可以很容易地排除,使测试输出是恒定的系统)。


参数:cache
: (logical) include the cache column?
(逻辑)包括cache列?


参数:full
: (logical) include all the optional columns?
(逻辑)包括所有可选列?


Details

详细信息----------Details----------

Returns part or all of the cached summary data.  There is one row per object.  Only tracked objects appear in the summary.
返回的缓存摘要数据的一部分或全部。每个对象有一个排。只追踪的对象出现在摘要中。


值----------Value----------

The value returned is a dataframe that summarizes the specified objects.  This function does not create any output itself – the auto-printing of the returned value is the visible output. The data frame has one row for each object (rownames are the object names) and some of the following columns:
返回的值是一个数据框,总结了指定的对象。此功能不会产生任何输出 - 自动打印的返回值是可见的输出。数据框中的每个对象有一个行(行名对象名称),以下的一些列:


参数:class:
(character) from class() (if class(obj) has more than one component, all components are appended separated by commas, if class(obj) returns a zero-length result, the value is "?")
(字符)class()(如果class(obj)有一个以上的组件,所有的组件都附加以逗号分隔,如果class(obj)返回一个长度为零的结果,该值是"?" )


参数:mode:
(character) from mode()
(字符)从mode()


参数:extent:
(character) from dim() or length(), with double brackets if the object is a list (will contain "(error)" if dim(obj) causes an error)
(字符)dim()或length(),采用双括号,如果对象是一个列表(包含"(error)"如果dim(obj)导致错误)


参数:length:
(integer) from length() (will be NA if length(obj) causes an error)
(整数)length()(NA如果length(obj)导致错误)


参数:size:
(integer) from object.size()
(整数)object.size()


参数:cache:
(character): Indicates whether the objected should always be kept cached.  Possible values are     
(字符):表示是否反对应始终保持缓存。可能的值有

yes, no:Automatically determined from track.options("alwaysCache") (object names) or track.options("alwaysCacheClass") (object classes); re-evaluated when object changes  
是的,没有自动确定track.options("alwaysCache")(对象名称)或track.options("alwaysCacheClass")(对象类);重新评估对象时的变化

fixedyes, fixedno:Always do this; don't re-evaluate when object changes.  This is intended to allow manually setting this for each object if desired, but as of version 1.0.9 no way for the user to do this safely has been provided.   
fixedyes,fixedno:始终做到这一点,不要对象发生变化时重新评估。这是为了允许手动设置为每个对象,如果需要的话,但1.0.9版本的安全提供了用户没有办法做到这一点。


参数:modified:
most recent modification time
最近一次修改的时间


参数:created:
time object created
时间创建的对象


参数:read:
most recent modification time
最近一次修改的时间


参数:A:
(logical) Accuracy of times: TRUE if object summary has been maintained since object was first tracked; FALSE if the object summary was lost at some point and then recreated
(逻辑)精度次数:TRUE如果对象总结以来一直保持对象跟踪; FALSE如果对象总结失去了一些点,然后重新


参数:ES:
(integer) sessions alive
(整数)会话的活动状态


参数:SR:
(integer) num reads this session
(整数)民读取这个会话


参数:SW:
(integer) num writes this session
(整数)民写入本次会议


参数:PR:
(integer) total reads prior to this session
(整数)总读取本届会议之前


参数:PW:
(integer) total writes prior to this session
(整数)总写在本次会议之前


参数:TR:
(integer) total reads
(整数)的总读取


参数:TW:
(integer) total writes
(整数)总写道:

Which columns are present depends on the arguments times, access, and size.
取决于哪些列上的参数times,access和size。

The reason for the class column containing all classes of the object separated by commas is that extracting the most informative class label is not simple, for example, the class of an object returned by glm() is c("glm", "lm") (most informative first), while the class of an object returned by Sys.time() is c("POSIXt", "POSIXct") (most informative last).
class列以逗号分隔的对象包含所有类的原因,提取最翔实的类标签并不简单,例如,返回的对象的类glm()是<X >(最翔实的第一次),而返回的对象的类c("glm", "lm")是Sys.time()(最翔实的最后)。


注意----------Note----------

The object summary data is maintained in an object called .trackingSummary kept in the tracking environment.  It is not visible on the search path.
汇总数据的对象保持在一个对象调用.trackingSummary一直在跟踪环境。它是不可见的搜索路径。


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


Tony Plate &lt;tplate@acm.org&gt;



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

Overview and design of the track package.
track包的概述和设计。


实例----------Examples----------


library(track)
unlink("tmp1", recursive=TRUE)
track.start("tmp1")
x <- 33
X <- array(1:24, dim=2:4)
Y <- list(a=1:3,b=2)
X[2] <- -1
y1 <- 2
y2 <- 3
track.summary()
track.summary(time=0, access=1, size=FALSE)
track.summary(X)
track.summary(list=c("x", "X"))
track.summary(pattern="[xX]")
track.stop(pos=1)
unlink("tmp1", recursive=TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 10:33 , Processed in 0.022930 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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