raoul schorer wrote:
>
>
> NB. Column index of data y by name x
> colIdxByName =: 4 : 'I. (0 { y) =
> NB. Select a column in data y by index x
> colByIdx =: 4 : '}.x{|:y'
>
> But if I try:
>
> colByName =: 4 : 0
> idx =. x colIdxByName y
> res =. idx colByIdx y
> )
Your approach is
Something like this, untested
'Valeur' (({.@] i. <@[) { |:@}.@]) data
Сб, 03 мар 2018, raoul schorer написал(а):
> Dear all,
>
> I am learning J and stumbled on something today:
>
> I loaded a .csv and obtained a boxed table, that I assigned to the name
> 'data'.
>
> The first row of 'data' lo
Dear all,
I am learning J and stumbled on something today:
I loaded a .csv and obtained a boxed table, that I assigned to the name
'data'.
The first row of 'data' looks like that:
│N°IPP│Nom du paramètre│Valeur│Valeur Unit│Heure│
Then I defined two functions, that do work as expected:
NB.