[R] Combining columns

Olu Ola oluola2011 at yahoo.com
Mon Nov 21 22:26:13 CET 2016


 Hello,I have the following data
| colA | colB | colC | colD |
| NA | pumpkin | NA | Pumpkin |
| Cassava | NA | NA | Cassava |
| yam | NA | NA | yam |
| NA | Cherry | NA | Cherry |
| NA | NA | Pepper | Pepper |
| NA | NA | Mango | Mango |
| maize | NA | NA | maize |


All I want to do is to combine the first three columns in order to obtain the fourth column.
A way forward will be greatly appreciated.

	[[alternative HTML version deleted]]



More information about the R-help mailing list