title: R How to convert data in Matrix? Factor to Integer?
body: <p>I am having trouble operating Matrixs. 
  First, I want to make factor data to integer so i can operate.
  Second, The First col, which shows date, should be factor. How can i change?</p>