Note that this is basically the same function as function #2 except
using different columns.
The extra credit might look like this:
dub_old_activity=:verb define
if. 2={:$y do.
1 5#"1 y
else.
y
end.
)
Untested code, though...
--
Raul
On Mon, Mar 30, 2020 at 10:39 PM HH PackRat
Something like this?
C=. <;._1&>',',&.><;._2 ] LF (] , [ #~ [ ~: [: {: ]) CR-.~0 : 0
1990-03-01,0.00,0.31,0.29,0.29,428800
1990-03-02,0.00,0.29,0.29,0.29,313600
1990-03-05,0.00,0.31,0.29,0.29,1395200
1990-03-06,0.00,0.31,0.29,0.29,1152000
1990-03-07,0.00,0.31,0.29,0.31,854400
1990-03-08,0.00,0.3
Continuing on to function #3.
Stock data normally consists of 6 pieces of data: date, open, high,
low, close, volume. Occasionally, early data for some stocks has no
data for the opening price of the day. One technique that some data
vendors use (in order to guarantee non-zero prices, which