Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在r中分解时合并两列_R - Fatal编程技术网

在r中分解时合并两列

在r中分解时合并两列,r,R,我的情况如下: 我想基于部分适用性的组合考虑: 第1部分-福特作为因子1,第1部分无限作为因子2,第1部分美塞苔丝作为因子3,第2部分无限作为因子4,依此类推 请提供帮助。您可以使用粘贴将这两列组合起来。 factor( paste(PART, APPLICABILITY, sep="-") )

我的情况如下:

我想基于部分适用性的组合考虑:
第1部分-福特作为因子1,第1部分无限作为因子2,第1部分美塞苔丝作为因子3,第2部分无限作为因子4,依此类推


请提供帮助。

您可以使用粘贴将这两列组合起来。

factor( paste(PART, APPLICABILITY, sep="-") )