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

R语言:checkRdaFiles()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:17:06 | 显示全部楼层 |阅读模式
checkRdaFiles(tools)
checkRdaFiles()所属R语言包:tools

                                         Report on Details of Saved Images or Re-saves them
                                         保存的图像或详细的报告再为他们节省

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

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

This reports for each of the files produced by save the size, if it was saved in ASCII or XDR binary format, and if it was compressed (and if so in what format).
此报告,所生产的每一个文件save的大小,如果它被保存在ASCII或XDR二进制格式,如果它被压缩(如果是什么格式)。

Usually such files have extension ".rda" or ".RData", hence the name of the function.
一般这样的文件扩展名.rda或.RData,因此函数的名称。


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


checkRdaFiles(paths)
resaveRdaFiles(paths, compress = c("auto", "gzip", "bzip2", "xz"),
               compression_level)



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

参数:paths
A character vector of paths to save files.  If this specifies a single directory, it is taken to refer to all ".rda" and ".RData" files in that directory.
save文件的路径的一个特征向量。如果指定一个单独的目录,它是指采取所有.rda和.RData在该目录中的文件。


参数:compress, compression_level
type and level of compression: see save.
压缩的类型和级别:见save。


Details

详情----------Details----------

compress = "auto" asks R to choose the compression and ignores compression_level.  It will try "gzip", "bzip2" and if the "gzip" compressed size is over 10Kb, "xz" and choose the smallest compressed file (but with a 10% bias towards "gzip").  This can be slow.
compress = "auto"问R来选择压缩,而忽略compression_level。它会尝试"gzip""bzip2"如果"gzip"压缩后的大小超过10KB,"xz"“选择最小的压缩文件(但有10%偏向<X >)。这可能会很慢。


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

For checkRdaFiles, a data frame with rows names paths and columns
对于checkRdaFiles,数据框与行名称paths和列


参数:size
numeric: file size in bytes, NA if the file does not exist.
数字:在字节的文件大小,NA如果该文件不存在。


参数:ASCII
logical: true for save(ASCII = TRUE), NA if the format is not that of an R save file.
逻辑:真实,保存(ASCII码= TRUE)NA如果没有一个R保存文件的格式是。


参数:compress
character: type of compression.  One of "gzip", "bzip2", "xz", "none" or "unknown" (which means that if this is an R save file it is from a later version of R).
特点:压缩类型。之一"gzip","bzip2","xz","none"或"unknown"(这意味着,如果这是一个R保存文件,它是从一个更高版本的R )。


参数:version
integer: the version of the save &ndash; usually 2 but 1 for very old files, and NA for other files.
整数:保存版本的 - 通常2但是1很老的文件,和NA的其他文件。


举例----------Examples----------


## from a package top-level source directory[从一个包的顶层源代码目录#]
paths <- sort(Sys.glob(c("data/*.rda", "data/*.RData")))
(res <- checkRdaFiles(paths))
## pick out some that may need attention[#挑出一些可能需要注意]
bad <- is.na(res$ASCII) | res$ASCII | (res$size > 1e4 &amp; res$compress == "none")
res[bad, ]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-6 20:17 , Processed in 0.031605 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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