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

R语言 secr包 read.traps()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 00:03:00 | 显示全部楼层 |阅读模式
read.traps(secr)
read.traps()所属R语言包:secr

                                         Read Detector Data From File
                                         从文件中读出检测数据

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

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

Construct an object of class traps with detector locations from a text file or data frame. Usage per occasion and covariates may be included.
构造一个对象类traps的检测从一个文本文件或数据框的位置。每次和协变量的用途可以包括在内。


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


read.traps(file = NULL, data = NULL, detector = "multi", covnames =
NULL, ...)



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

参数:file
character string with name of text file  
字符串,文本文件的名称


参数:data
data frame of detector coordinates  
数据框的检测坐标


参数:detector
character string for detector type  
探测器类型的字符串


参数:covnames
character vector of names for detector covariate fields  
检测器的协变量字段的名称的字符向量。


参数:...
other arguments to pass to read.table  
到传递read.table的其他参数


Details

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

Reads a text file in which the first column is a character string (see Note) identifying a detector and the next two columns are its x- and y-coordinates, separated by white space. The coordinates optionally may be followed by a string of codes "0" or "1" indicating whether the detector was operated on each occasion. Trap-specific covariates may be added at the end of the line preceded by "/". This format is compatible with the Density software (Efford 2007), except that all detectors are assumed to be of the same type (usage codes greater than 1 are treated as 1), and more than one covariate may be specified.
读取一个文本文件,其中的第一列是一个字符串(见注)识别检测,并在接下来的两列是它的x和y坐标,用空格分隔。随后可任选的坐标代码0或1指示是否检测器每次操作由一个字符串。陷阱特定的协变量,也可以添加在前面用/线结束。这种格式是兼容的所有探测器被假定是相同的类型(使用代码大于1被视为1),和一个以上的协变量可以指定密度软件(Efford 2007),除。

If file is missing then x-y coordinates will be taken instead from data. This option does not allow for covariates or usage, but they maybe added later.
如果file缺少xy坐标,而不是从data。此选项不为covariates或usage,但他们也许在以后添加。

detector specifies the behaviour of the detector following Efford et al. (2009). "single" refers to a trap that is able to catch at most one animal at a time; "multi" refers to a trap that may catch more than one animal at a time. For both "single" and "multi" detectors a trapped animals can appear at only one detector per occasion. Detectors of type "proximity", such as camera traps and hair snags for DNA sampling, allow animals to be recorded at several detectors on one occasion. See detector for further detector types.
detector指定以下Efford等检测器的行为。 (2009年)。 “单”是指的是一个陷阱,能够赶上一次至多一个动物,“多”是指一个陷阱,可能赶上一个以上的动物一次。对于这两个单和多探测器,一个被困的动物,可以出现在每一次只有一个探测器。类型“接近性”,如摄像头的陷阱和头发方面的障碍DNA采样探测器,让动物被记录在几个探测器上一次。见detector作进一步的检测类型。

For polygon and transect detector types, each line corresponds to a vertex and starts with a code to identify the polygon or transect (hence the same code appears on 2 or more lines). For input from a dataframe the code column should be named "polyID". Also, usage and covariates are for the polygon or transect as a whole and not for each vertex. Usage and covariates are appended to the end of the line, just as for point detectors (traps etc.). The usage and covariates for each polygon or transect are taken from its first vertex. Although the end-of-line strings of other vertices are not used, they cannot be blank and should use the same spacing as the first vertex.
对于多边形和样探测器类型,每行对应一个顶点,并开始用代码来识别多边形或样带(因此相同的代码将出现在2个或更多行)。从一个数据框输入代码列被命名为“polyID”。此外,使用和协变量是作为一个整体的,而不是为每个顶点的多边形或断面。使用方法和协变量被附加到该行的结束,只是为点式探测器(陷阱)。使用和协变量每个多边形或样的是从它的第一个顶点。虽然行结束的字符串的其他顶点都没有用,他们不能是空白的,应该使用相同的间距的第一个顶点。


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

An object of class traps comprising a data frame of x- and y-coordinates, the detector type ("single", "multi", "proximity", "count", "polygon" etc.), and possibly other attributes.
类的一个对象traps包括一个数据框的x-和y-坐标,检测器的类型(“单”,“多”,“接近”,“计数”,“多边形”等),以及可能的其他属性。


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

Detector names, which become row names in the traps object, should not contain underscores.
探测器的名称,成为行中的陷阱对象的名称,应不包含下划线。


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

capture–recapture. Department of Zoology, University of Otago, Dunedin, New Zealand. http://www.otago.ac.nz/density
by spatially explicit capture-recapture: likelihood-based methods. In: D. L. Thomson, E. G. Cooch and M. J. Conroy (eds) Modeling Demographic Processes in Marked Populations. Springer, New York. Pp. 255–269.

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

traps, make.grid, detector
traps,make.grid,detector


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


## Replace file name with a valid local name and remove '#' [#替换有效的本地名称和文件名,删除#]
# read.traps ("c:\\myfolder\\mytraps.txt", detector="proximity")[read.traps(“C:\ \ MyFolder的\ \ mytraps.txt”,检波器=“近水楼台”)]
## \mytraps.txt' should have lines like this [#\ mytraps.txt应该有这样的行]
# 1     365     365[1 365 365]
# 2     365     395[2 365 395]
# 3     365     425[3 365 425]
# etc.[等等]


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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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