title: subsetting data loses all my observations
body: <p>I have a data-frame "Test" I wish to subset, but when I try I lose all observations. Why is this happening?</p>
  
  <pre><code>&gt; str(Test)
  'data.frame':   157025 obs. of  13 variables:
  $ Cancellations    : int  1 1 1 1 1 1 1 1 1 1 ...
  $ Benefit          : chr  "Single Parent Support                          "               "Single Parent Support                          " "Job Seeker                                         " "Job Seeker                                     " ...
  $ Region           : chr  "        Northland    " "        Northland    " "            Northland    " "        Northland    " ...
  $ Month            : chr  "Jun 14" "Jun 14" "Jun 14" "Jun 14" ...
  $ CanReason        : chr  "Change in Marital Status           " "Change in     Marital Status           " "Change in Marital Status           " "Change in     Marital Status           " ...
  $ Age              : chr  " 20-24 " " 20-24 " " 20-24 " " 20-24 " ...
  $ Ethnicity        : chr  "NZ European/Pakeha" "Maori             " "Other                      " "NZ European/Pakeha" ...
  $ SMS              : chr  "General Case Management               " "Work     Focused Case Management          " "Work Focused Case Management          " "Work     Search Support                   " ...
  $ Duration         : chr  "2-4 yrs " "2-4 yrs " "6-9 mth " "0-3 mth " ...
  $ SMSDuration      : int  361 348 59 69 150 37 63 294 107 107 ...
  $ AgeYoungest      : chr  "0-4 yrs    " "0-4 yrs    " "No Children" "No    Children" ...
  $ AgeYoungestNonSub: chr  "0-4 yrs" "0-4 yrs" "No Children" "No Children" ...
  $ Liability        : chr  " 166,000 " " 166,000 " " 102,000 " " 102,000 " ...
  
  
  &gt; subDie &lt;- Test[CanReason == "Died",]
  
  &gt; str(subDie)
  'data.frame':   0 obs. of  13 variables:
  $ Cancellations    : int 
  $ Benefit          : chr 
  $ Region           : chr 
  $ Month            : chr 
  $ CanReason        : chr 
  $ Age              : chr 
  $ Ethnicity        : chr 
  $ SMS              : chr 
  $ Duration         : chr 
  $ SMSDuration      : int 
  $ AgeYoungest      : chr 
  $ AgeYoungestNonSub: chr 
  $ Liability        : chr 
  </code></pre>
  
  <p>I have tried turning factor variables into characters. And when I place the comma in front of "CanReason" indexing row (subDie &lt;- Test[, CanReason == "Died"]) R tells me i have 157025 observations on 0 variables....
  Im stumped</p>