2014-03-19 47 views
-1

保理我有一個情況如下圖所示:結合兩列,而在r中

enter image description here

我想基於PART-適用性的組合因素:
PART1福特爲因子1,PART1- Infinity爲因子2,PArt1-MERC爲因子3,PART2-Infinty爲因子4等。

請幫忙。

回答

0

可以使用結合兩列paste

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