官术网_书友最值得收藏!

Factor

We now see that the class is a factor, as we can see in the following output:

[1] "factor"

Now, we can also look at the internal structure of this vector x, using str() as follows:

str(x)

We now see that it converts 1, 2, and 3 to factors:

[1]  Factor w/ 3 levels "1", "2", "3": 1 2 3
主站蜘蛛池模板: 阿城市| 嘉禾县| 德格县| 九龙城区| 双流县| 肥城市| 鄂托克前旗| 社旗县| 哈尔滨市| 额敏县| 霍林郭勒市| 鲁山县| 洛扎县| 景东| 汝城县| 马尔康县| 托里县| 木兰县| 牙克石市| 益阳市| 安龙县| 四子王旗| 启东市| 新安县| 宁南县| 日照市| 无锡市| 沽源县| 长顺县| 蓬莱市| 南汇区| 台江县| 凤冈县| 明溪县| 化隆| 南部县| 石城县| 通州市| 工布江达县| 息烽县| 海城市|