I have data in excel as:
     Terms       Category  Weight
      email       TV          1.00
      acccount    Email       12.0
      accept      Phone       3.00
I have other matrix and its format is:
   Terms   TV    Email  Phone  Contact    Information  Support .....
   achieve  1    0.       0      0         0             0
   acquired 0    10.20    0      0         0             0
   across   0    0        3.00   0          0            0
now I want to convert above data into above format like
   Terms   TV    Email  Phone  Contact    Information  Support .....
    email    1    0.       0      0         0.0          0
    acccount 0    12.0    0      0         0.0          0
    accept   0    0        0      1.23       0          0
I want to do this by program in R. Any help will be appreciated. Thanks in advance.
 
    