search for: 19830218

Displaying 1 result from an estimated 1 matches for "19830218".

Did you mean: 19830216
2012 Jul 06
1
Problem using Lag on time series
...;,"open","high","low","close") > f$test <-0 > f$test <- ifelse(f$close<Lag(f$low),1,ifelse(f$close>Lag(f$high),-1,Lag(f$test))) > f date open high low close Lag.1 1 19830216 1737 1742 1735 1739 NA 2 19830217 1738 1745 1738 1742 0 3 19830218 1740 1744 1738 1739 0 4 19830221 1730 1730 1721 1721 1 5 19830222 1715 1720 1714 1720 1 6 19830223 1711 1712 1702 1709 1 7 19830224 1708 1716 1708 1716 -1 8 19830225 1718 1726 1718 1718 -1 9 19830228 1712 1713 1701 1704 1 10 19830301 1690 1694 1683 1689 1 11 19830302 1698 1713 1698 1708 -1...