
上QQ阅读APP看书,第一时间看更新
6-3 labels参数
使用factor()函数建立因子时,如果有需要,可以使用第3个参数labels。假设在实例ch6_5中,我们想为“East”“West”“South”“North”建立缩写“E”“W”“S”“N”,那么这时就可以使用labels了。
实例ch6_6:建立sixth.factor,以缩写显示因子的Levels内容。


由上述执行结果可以看到,我们成功以缩写显示了。
使用factor()函数建立因子时,如果有需要,可以使用第3个参数labels。假设在实例ch6_5中,我们想为“East”“West”“South”“North”建立缩写“E”“W”“S”“N”,那么这时就可以使用labels了。
实例ch6_6:建立sixth.factor,以缩写显示因子的Levels内容。
由上述执行结果可以看到,我们成功以缩写显示了。