How can I delete the rows using Filter Function in R?
<p>My Dataset,  card.usage is like the followings.</p>

<pre><code>&gt; head(card.usage)
     dateYmd WithdrawMoney DepositMoney         title     extra
1 2016-08-18         10000            0       국민조*기   인터넷
2 2016-08-17          7300            0 롯데쇼핑（주）롯 체크우리
3 2016-08-17          2500            0   메가박스（주） 체크우리
4 2016-08-17             0        20000             조**   모바일
5 2016-08-17          4200            0 서울모스 체크우리
6 2016-08-14          2400            0 （주）코리아세븐 체크우리
</code></pre>

<p>With this dataset to be need to be fixed, I want to use Filter function to remove the row where the column depositMoney is 0, So I tried running the following code </p>

<pre><code>card.usage.filtered = Filter( function(x) {  x$DepositMoney = 0}, card.usage)
</code></pre>

<p>what I want to do is to delete the rows where the column, DepositMoney, is not 0. But If I use the filter function like above, I lose all rows.  I know that the parameter of high order function is a vector . How can I access the specific column ? I can not find the example of it.</p>