|
|
|
|
|
by RodgerTheGreat
46 days ago
|
|
Lil's readcsv[] takes three arguments: a data string, an optional typecode-string (which can also skip columns with "_"), and an optional delimiter character. First row is always assumed to be headers; I find it easy enough to concatenate on a header row before calling the function if I'm ever dealing with a headerless CSV file. The typecode-string approach in Lil is very similar to how Q handles it with dyadic 0:. In this specific example I could do without the typecode-string since arithmetic operators like sum, -, and * will coerce string columns into numbers, but I think this way is cleaner. |
|