Re: [Jprogramming] trivial value passing issue

2018-03-03 Thread neitzel
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

Re: [Jprogramming] trivial value passing issue

2018-03-02 Thread bill lam
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

[Jprogramming] trivial value passing issue

2018-03-02 Thread 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' looks like that: │N°IPP│Nom du paramètre│Valeur│Valeur Unit│Heure│ Then I defined two functions, that do work as expected: NB.