正在加载图片...
R语言基本操作 数据类型判断及转换 对象类型判断 model #元素类型 class #变量类型 > is numeric(#返回值为TRUE或 FALSE is logicall #返回值为TRUE或 FALSE > is charactor()#返回值为TRUE或 FALSE > is data frame()#返回值为TRUE或 FALSE 对象类型转换 > as numeric0#转换为数值型 as logica #转换为逻辑型 > ascharactor()#转换为字符型 > as matrix( #转换为矩阵 > as, dataframe()#转换为数据框 > as factor()#转换为因子R语言基本操作 数据类型判断及转换 > mode() #元素类型 > class() #变量类型 > is.numeric() #返回值为TRUE或FALSE > is.logical() #返回值为TRUE或FALSE > is.charactor() #返回值为TRUE或FALSE > is.data.frame() #返回值为TRUE或FALSE > as.numeric() #转换为数值型 > as.logical() #转换为逻辑型 > as.charactor() #转换为字符型 > as.matrix() #转换为矩阵 > as.dataframe() #转换为数据框 > as.factor() #转换为因子 对象类型判断 对象类型转换
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有