SPACECAP(secr)
SPACECAP()所属R语言包:secr
Exchange data with SPACECAP package
交换数据SPACECAP包
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Data in a single-session secr capthist object may be written directly to the "csv" format used by SPACECAP, a package for Bayesian spatially explicit capture–recapture (Singh et al. 2010). Data in csv format may also be read to construct a capthist object for analysis in secr.
在一个单一的会话数据secrcapthist对象可以直接写到“CSV”SPACECAP,包贝叶斯空间明确的捕获 - 再捕获(Singh等人使用的格式。 2010)。 csv格式的数据也可以被理解为建立一个capthist分析对象,在secr。
用法----------Usage----------
write.SPACECAP(object, mask = NULL, buffer = 100, ndec = 2,
filestem = "")
read.SPACECAP(AC, TD, detector = "proximity", session = "1")
参数----------Arguments----------
参数:object
capthist object with the captures and trap locations to export
capthist对象的捕捉和陷阱的位置,以便出口
参数:mask
mask object to use for state-space file
mask反对使用状态空间文件
参数:buffer
width of buffer in metres to use when creating a mask if none is specified
缓冲区的宽度,以米为单位使用时,如果没有指定,创建遮罩
参数:ndec
number of digits after decimal point for coordinates of mask on output
面膜输出坐标小数点后的位数
参数:filestem
character value used to form names of output files
使用的字符值形成的输出文件的名称
参数:AC
character value giving name of "animal capture" .csv file
csv文件字符值提供“动物捕获”的名称。
参数:TD
character value giving name of "trap deployment" .csv file
csv文件字符值的名称“陷阱部署”。
参数:detector
detector type ("proximity" or "count")
检测器类型(“接近性”或“计数”)
参数:session
character value to use as session name
使用会话名称的字符值
Details
详细信息----------Details----------
If successful, write.SPACECAP creates three output files with names ending in "AC.csv","TD.csv" and "SS.csv". These are respectively the "Animal Capture", "Trap Deployment" and "State-Space" files required by SPACECAP.
如果成功的话,write.SPACECAP创建三个输出文件名称在“AC.csv”,“TD.csv”和“SS.csv的结束。这些分别是“动物捕捉”,“陷阱部署”和“国家空间的文件所要求的SPACECAP。
值----------Value----------
write.SPACECAP is used for its side effect of writing the required csv files. read.SPACECAP returns a capthist object.
write.SPACECAP用于其副作用的写入需要的csv文件。 read.SPACECAP返回一个capthist对象。
注意----------Note----------
State-space csv files may be imported with read.mask.
国家空间csv文件可以进口与read.mask。
参考文献----------References----------
K. U. (2010) SPACECAP: A program to estimate animal abundance and density using Bayesian spatially explicit capture-recapture models. Version 1.0. Wildlife Conservation Society - India Program, Centre for Wildlife Studies, Bangalure, India.
参见----------See Also----------
capthist, mask, read.mask
capthist,mask,read.mask
实例----------Examples----------
## Not run: [#不运行:]
## coerce data to proximity detector type for export[#接近检测器出口类型的数据强制]
demo <- reduce(captdata, output = "proximity")
write.SPACECAP (demo, filestem = "demo")
## now read back the data just exported...[#现在读回刚才导出的数据...]
temp <- read.SPACECAP ("demoAC.csv", "demoTD.csv")
temp <- reduce(temp, output = "single")
summary (temp)
summary (captdata)
## should match exactly[#完全匹配]
identical(summary(temp), summary(captdata))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|