如何找出变量是R中的因子还是连续的 [英] How to find out whether a variable is a factor or continuous in R

查看:39
本文介绍了如何找出变量是R中的因子还是连续的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含一堆变量的表.我可以使用什么语句来确定这些变量是被视为因子还是连续变量?

I have a table with a bunch of variables. What statement I can use to find out whether these variables are considered as a factor or continuous?

推荐答案

你可以使用str(Data)

?str - 简洁地显示一个 R 对象的内部结构,一个诊断功能和总结的替代品(在某种程度上,输入)

?str - Compactly display the internal structure of an R object, a diagnostic function and an alternative to summary (and to some extent, dput)

这篇关于如何找出变量是R中的因子还是连续的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆