The dataset is Netflix stock price with 8 variables (8 columns) So I am picking the 3 columns I need by using
select("date", "open", "close")
  date        open close
   <date>     <dbl> <dbl>
 1 2011-01-03  25    25.5
 2 2011-01-04  25.9  25.9
 3 2011-01-05  25.9  25.7
 4 2011-01-06  25.2  25.4
 5 2011-01-07  25.5  25.6
 6 2011-01-10  25.7  26.8
 7 2011-01-11  27.1  26.7
 8 2011-01-12  26.9  27.0
 9 2011-01-13  26.9  27.4
10 2011-01-14  27.3  27.4
- I wanna pick only the rows where the opening price is higher than previous days closing price
- And also, the closing price has to be higher than the opening for that same day So for this dataset only 3 rows are qualifying: Jan 7th, Jan 10th and Jan 12th. If somebody could help me to understand how to code this, I would really appreciate.
 
    