read.vgc(zipfR)
read.vgc()所属R语言包:zipfR
Loading and Saving Vocabulary Growth Curves (zipfR)
载入和保存的词汇生长曲线(zipfR)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
read.vgc loads vocabulary growth data from .vgc file
read.vgc负载词汇的增长数据从.vgc文件
write.vgc saves vocabulary growth data in .vgc file
write.vgc词汇增长.vgc文件中的数据保存
用法----------Usage----------
read.vgc(file)
write.vgc(vgc, file)
参数----------Arguments----------
参数:file
character string specifying the pathname of a disk file. Files with extension .gz will automatically be compressed/decompressed. See section "Format" for a description of the required file format
字符串指定的磁盘文件的路径名。文件与扩展.gz将自动压缩/解压缩。为所需的文件格式的描述,请参见“格式”
参数:vgc
a vocabulary growth curve, i.e.\ an object of class vgc
词汇增长曲线,即\类的一个对象vgc
格式----------Format----------
A TAB-delimited text file with column headers but no row names (suitable for reading with read.delim). The file must contain at least the following two columns:
制表符分隔的文本文件,列标题,但没有行名称(适合阅读read.delim)。该文件必须至少包含以下两列:
N increasing integer vector of sample sizes N
N递增的整数向量的样本大小N
V corresponding observed vocabulary sizes V(N)
V的相应观测到的词汇量V(N)
Optionally, columns V1, ..., V9 can be added to specify the number of hapaxes (V_1(N)), dis legomena (V_2(N)), and further spectrum elements up to V_9(N).
任选,列V1,...,V9可以被添加到指定的数目的hapaxes(V_1(N)),显示legomena(V_2(N)),和进一步的频谱元素,直到V_9(N)。
It is not necessary to include all 9 columns, but for any V_m(N) in the data set, all "lower" spectrum elements V_{m'}(N) (for m' < m) must also be present. For example, it is valid to have columns V1 V2 V3, but not V1 V3 V5 or V2 V3 V4.
这是没有必要的,包括所有的9列,但为任何V_m(N)的数据集,所有的“低”的光谱元素V_{m'}(N)(m' < m)也必须存在。例如,它是有效的列V1 V2 V3,但不是V1 V3 V5或V2 V3 V4。
Variances for expected vocabulary sizes and spectrum elements can be given in further columns VV (for Var[V(N)]), and VV1, ..., VV9 (for Var[V_m(N)]). VV is mandatory in this case, and columns VVm must be specified for exactly the same frequency classes m as the Vm above.
预期的词汇量和频谱元素的差异,可以进一步列VV(例如,Var[V(N)]),和VV1,...,VV9(Var[V_m(N)] )。 VV是强制性的在这种情况下,并且,必须指定完全相同的相同的频度等级VVmm上述列Vm。
These columns may appear in any order in the text file. All other columns will be silently ignored.
这些列中可能出现的任何命令的文本文件。所有其他列会被忽略。
Details
详细信息----------Details----------
If the filename file ends in the extension .gz, the disk file will automatically be decompressed (read.vgc) and compressed (write.vgc).
如果文件名file结束在延长.gz,磁盘文件会自动解压缩(read.vgc)和压缩(write.vgc)。
值----------Value----------
read.vgc returns an object of class vgc (see the vgc manpage for details)
read.vgc返回一个对象类vgc(vgc联机帮助的详细信息)
参见----------See Also----------
See the vgc manpage for details on vgc objects. See read.tfl and read.spc for import/export of other data structures.
vgc对象的详细信息,请参阅“vgc的联机帮助页。见read.tfl和read.spc的其他数据结构的导入/导出的。
实例----------Examples----------
## Not run: [#不运行:]
## examples will not be run during package compilation[#示例将不会运行在包编译]
## since they would require accessing and writing to[#,因为他们需要访问和写入]
## external files[#外部文件]
## load Italian ultra- prefix vgc[#加载意大利超前缀的VGC]
## and write to external text file[#写入到外部文本文件]
data(ItaUltra.emp.vgc)
write.vgc(ItaUltra.emp.vgc,"ultra.vgc")
## now ultra.vgc is a text file with columns N, V and V1[现在ultra.vgc是一个文本文件,列N,V和V1]
## we ready it back in[#我们准备回]
New.vgc <- read.vgc("ultra.vgc")
## same vgc as ItaUltra.emp.vgc, compare:[#一样的VGC为ItaUltra.emp.vgc,比较:]
summary(New.vgc)
summary(ItaUltra.emp.vgc)
head(New.vgc)
head(ItaUltra.emp.vgc)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|