设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 670|回复: 0

R语言电子表格中的数据输入read.DIF()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:11:36 | 显示全部楼层 |阅读模式
        R语言电子表格中的数据输入read.DIF()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:read.DIF()
R语言函数功能:电子表格中的数据输入
来自资源库:基础库(R语言自带)
read.DIF()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

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

Reads a file in Data Interchange Format (DIF) and creates a data frame from it. DIF is a format for data matrices such as single spreadsheets.
读取数据交换格式(DIF)的文件并从中创建一个数据帧。 DIF是用于数据矩阵(例如单个电子表格)的格式。


使用方法-----Usage-----

read.DIF(file, header = FALSE,
dec = ".", numerals = c("allow.loss", "warn.loss", "no.loss"),
row.names, col.names, as.is = !stringsAsFactors,
na.strings = "NA", colClasses = NA, nrows = -1,
skip = 0, check.names = TRUE, blank.lines.skip = TRUE,
stringsAsFactors = default.stringsAsFactors(),
transpose = FALSE, fileEncoding = "")

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

参数file介绍: the name of the file which the data are to be read from, or a connection, or a complete URL.
要从中读取数据的文件的名称,连接或完整的URL。

The name "clipboard" may also be used on Windows, in which case read.DIF("clipboard") will look for a DIF format entry in the Windows clipboard.
在Windows上也可能使用名称"clipboard",在这种情况下read.DIF("clipboard")会在Windows剪贴板中查找DIF格式条目。

参数header介绍: a logical value indicating whether the spreadsheet contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE if and only if the first row contains only character values and the top left cell is empty.
一个逻辑值,指示电子表格是否包含变量名称作为其第一行。如果丢失,则从文件格式确定该值:当且仅当第一行仅包含字符值且左上角单元为空时,才将header设置为TRUE。

参数dec介绍: the character used in the file for decimal points.
文件中用于小数点的字符。

参数numerals介绍: string indicating how to convert numbers whose conversion to double precision would lose accuracy, see type.convert.
字符串,指示如何将数字转换为转换为双精度会丢失精度的数字,请参见type.convert。

参数row.names介绍: a vector of row names. This can be a vector giving the actual row names, or a single number giving the column of the table which contains the row names, or character string giving the name of the table column containing the row names.
行名的向量。这可以是给出实际行名的向量,也可以是给出包含行名的表的列的单个数字,也可以是给出包含行名的表列的名称的字符串。

If there is a header and the first row contains one fewer field than the number of columns, the first column in the input is used for the row names. Otherwise if row.names is missing, the rows are numbered.
如果有标题,并且第一行包含的字段少于列数,则输入中的第一列用作行名。否则,如果缺少row.names,则会对行进行编号。

-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-5-21 05:29 , Processed in 0.023990 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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