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

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

[复制链接]
发表于 2012-10-1 15:12:25 | 显示全部楼层 |阅读模式
read.cep(vegan)
read.cep()所属R语言包:vegan

                                        Reads a CEP (Canoco) data file
                                         中读取一个的CEP(Canoco)的数据文件

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

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

read.cep reads a file formatted by relaxed strict CEP format used by Canoco software, among others.
read.cep宽松严格的的CEP格式使用Canoco软件,其中包括读取文件的格式。


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


read.cep(file, maxdata=10000, positive=TRUE, trace=FALSE, force=FALSE)



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

参数:file
File name (character variable).  
文件名(字符变量)。


参数:maxdata
Maximum number of non-zero entries.  
的非零项的最大数目。


参数:positive
Only positive entries, like in community data.
只有积极的条目,如在社区数据。


参数:trace
Work verbosely.
工作冗长的。


参数:force
Run function, even if R refuses first.
运行功能,如果R拒绝第一。


Details

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

Cornell Ecology Programs (CEP) introduced several data formats designed for punched cards.  One of these was the "condensed strict" format which was adopted by popular software DECORANA and TWINSPAN. Later, Cajo ter Braak wrote Canoco based on DECORANA, where he adopted the format, but relaxed it somewhat (that's why I call it a "relaxed strict" format). Further, he introduced a more ordinary "free" format, and allowed the use of classical Fortran style "open" format with fixed field widths.  This function should be able to deal with all these Canoco formats, whereas it cannot read many of the traditional CEP alternatives.
康乃尔大学生态学计划(CEP)介绍了多种数据格式设计的穿孔卡片。其中之一是“简明严格”的格式,通过流行的软件DECORANA和TWINSPAN。后来,查约后Braak写道Canoco的基础上,DECORANA,他采取的格式,但它有点放松(这就是为什么我把它称为一个“轻松严格的格式)。此外,他还推出了更普通的自由的格式,固定的字段宽度允许使用的经典的Fortran风格的“开放”格式。此功能应该能够处理所有这些Canoco格式,而不能读了很多的传统CEP的替代品。

All variants of CEP formats have:
所有的变种的CEP格式有:

Two or three title cards, most importantly specifying the format (or word FREE) and the number of items per record (number of species and sites for FREE format).
两个或三个标题卡,最重要的是指定的格式(或字FREE)和每页记录的数量(FREE格式的数量,种类和地点)。

Data in one of three accepted formats:
数据在三种公认的格式之一:

Condensed format: First number on the line is the site identifier, and it is followed by pairs ("couplets") of numbers identifying the species and its abundance (an integer and a floating point number).
简明格式:上线的第一数量的站点标识符,它后面是对(“对联)的数字识别的物种和它的丰度(一个整数和浮点数)。

Open Fortran format, where the first number on the line must be the site number, followed by abundance values in fields of fixed widths. Empty fields are interpreted as zeros.
打开Fortran语言格式,其中第一个数字就行了,其次是固定宽度的字段中的丰度值必须是站点数目。空字段被解释为0。

"Free" format, where the numbers are interpreted as abundance values.  These numbers must be separated by blank space, and zeros must be written as zeros.
“免费”的格式,其中丰度值的数字被解释为。这些数字都必须由空格分隔的0必须写为零。

Species and site names, given in Fortran format (10A8): Ten names per line, eight columns for each.
物种和站点名称,在Fortran语言格式(10A8):10名,每行8列的每个给定的。

With option positive = TRUE the function removes all lines and columns with zero or negative marginal sums.  In community data with only positive entries, this removes empty sites and species. If data entries can be negative, this ruins data, and such data sets should be read in with option positive = FALSE.
选项“positive = TRUE的功能与零或负的边际和删除所有行和列。在社区数据,只有积极的条目,删除空的地点和物种。如果数据项可以是负的,这废墟的数据,这样的数据集应阅读与选项“positive = FALSE。


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

Returns a data frame, where columns are species and rows are sites. Column and row names are taken from the CEP file, and changed into unique R names by make.names after stripping the blanks.
返回的数据框,其中列物种和行网站。列名和列名的CEP文件,独特的R名称改为make.names剥离后的空白。


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

The function relies on smooth linking of Fortran file IO in R session.  This is not guaranteed to work, and therefore the function may not work in your system, but it can crash the R session.  Therefore the default is that the function does not run.  If you still want to try:
该功能依赖于光滑连接的Fortran文件IO R会话。这是不能保证的工作,因此,该功能在你的系统可能无法正常工作,但它可以崩溃的R会话。因此,默认情况下是不运行的功能。如果您仍然想尝试:

Save your session
保存您的会话

Run read.cep() with switch force=TRUE
运行read.cep()与开关force=TRUE

If you transfer files between operating systems or platforms, you should always check that your file is formatted to your current platform. For instance, if you transfer files from Windows to Linux, you should change the files to unix format, or your session may crash when Fortran program tries to read the invisible characters that Windows uses at the end of each line.
如果您的操作系统或平台之间的文件传输,您应经常检查您的文件被格式化为当前平台。例如,如果您将文件从Windows到Linux,你应该改变unix格式,或会话时可能会崩溃的Fortran程序试图读取不可见字符,Windows使用在每行末尾的文件。

If you compiled vegan using gfortran, the input is probably corrupted.  You either should compile vegan with other FORTRAN compilers or not to use read.cep.  The problems still persist in gfortran 4.01.
如果您在编译vegan使用gfortran,输入可能已损坏。您可以编译vegan与其他FORTRAN编译器或不使用read.cep。在gfortran 4.01的问题依然存在。


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


Jari Oksanen



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

community ordination by [partial] [detrended] [canonical] correspondence analysis, principal components analysis and redundancy analysis. TNO Inst. of Applied Computer Sci., Stat. Dept. Wageningen, The Netherlands.

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


## Provided that you have the file `dune.spe'[#,你的文件dune.spe,“]
## Not run: [#不运行:]
theclassic <- read.cep("dune.spe", force=T)
## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-27 02:20 , Processed in 0.029907 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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