R语言将数据转换为适当的类型type.convert()函数-中英文对照帮助文档
By MicroRbt Martinez PhD
R语言函数名:type.convert()
R语言函数功能:将数据转换为适当的类型
来自资源库:基础库(R语言自带)
type.convert()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。
描述-----Description-----
Convert a data object to logical, integer, numeric, complex, character or factor as appropriate.
根据需要将数据对象转换为逻辑,整数,数字,复数,字符或因子。
使用方法-----Usage-----
type.convert(x, ...)
## Default S3 methodefault S3 method:
默认的S3方法:
type.convert(x, na.strings = "NA", as.is = FALSE, dec = ".",
numerals = c("allow.loss", "warn.loss", "no.loss"), ...)
## S3 method for class 'data.frame' S3 method for class 'data.frame'
type.convert(x, ...)
## S3 method for class 'list' S3 method for class 'list'
type.convert(x, ...)
参数-----Arguments-----
参数x介绍: a vector, matrix, array, data frame, or list.
向量,矩阵,数组,数据框或列表。
参数na.strings介绍: a vector of strings which are to be interpreted as NA values. Blank fields are also considered to be missing values in logical, integer, numeric or complex vectors.
字符串的向量,将其解释为NA值。空白字段也被认为是逻辑,整数,数字或复数向量中的缺失值。
参数as.is介绍: whether convert to factors. When false (as by default currently, but planned to be changed!), convert character vectors to factors. See Details .
是否转换为factors。为false时(当前为默认值,但计划更改!),将字符向量转换为因数。请参阅Details。
参数dec介绍: the character to be assumed for decimal points.
小数点假定的字符。
参数numerals介绍: string indicating
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
|