[Jprogramming] How long did the marriages last?
Ric Sherlock
tikkanz at gmail.com
Mon Jul 11 11:23:44 UTC 2016
I'm not clear on exactly what you're trying to achieve. You could create
some sort of delimited or fixed format text file, and read it in to J?
Here is an example of using 0 : 0 to define E as an alternative to your
current methodology.
E=: ';'&splitstring;._2 noun define
1809;Philip St. George Cooke;1895
1836;Flora Cooke Stuart ;1923
1833;Jeb Stuart ;1864
1834;Jacob Sharpe ;1892
)
On Mon, Jul 11, 2016 at 8:31 PM, Linda A Alvord <lindaalvord at verizon.net>
wrote:
> YES! And thanks a lot! However, I found it easier to just adjust the
> entire colum before appending it to all the rest. Is there a better way to
> enter lots of data? I dried BR=: 0 : 0 but it came out formatted all
> differently. I liked math but mostly ignored lots of data, so I'm somewhat
> handicapped in this projest as I have many relatives.
>
> Linda
>
> -----Original Message-----
> From: Programming [mailto:programming-bounces at forums.jsoftware.com] On
> Behalf Of Ric Sherlock
> Sent: Monday, July 11, 2016 3:46 AM
> To: Programming JForum
> Subject: Re: [Jprogramming] How long did the marriages last?
>
> Let's say you determine the length of the 3 marriages are 10 14 17, then
> you can amend NEW as follows:
>
> (<&> 10 14 17) (<a:;1;4)} NEW
>
> Is that what you were after?
>
> On Sun, Jul 10, 2016 at 2:19 PM, Linda A Alvord <lindaalvord at verizon.net>
> wrote:
>
> > I have put married pairs together. The 4th column has the date for
> > each of the three marriages. I can get the length of their marriages
> > but I can't seem to insert them into the three boxes which currently
> > contain a zero. I can't amend the three years in the boxes. Linda
> >
> >
> >
> > A=:'1809';'Philip St. George Cooke';'1895'
> >
> > B=:'1807';'Rachel Cooke';'1896'
> >
> > C=:'1830';'John Eaten Cooke';'1886'
> >
> > D=:'1840';'Mary Frances Cooke';'1878'
> >
> > E=:'1833';'B Jeb Stuart';'1864'
> >
> > F=:'1836';'B Flora Cooke Stuart';'1923'
> >
> > DA=:A,B,C,D,E,:F
> >
> >
> >
> > age=: 13 :'y,.,. <"0-/"1"."1>2 0{"1 y'
> >
> >
> >
> > DATA=:age DA
> >
> >
> >
> > MAR=:<"0,.1830 0 1867 0 1855 0
> >
> >
> >
> > [NEW=:3 2 5$,DATA,.MAR
> >
> > -----T-----------------------T----T--T----┐
> > │1809│Philip St. George Cooke│1895│86│1830│
> > +----+-----------------------+----+--+----+
> > │1807│Rachel Cooke │1896│89│0 │
> > L----+-----------------------+----+--+-----
> >
> > -----T-----------------------T----T--T----┐
> > │1830│John Eaten Cooke │1886│56│1867│
> > +----+-----------------------+----+--+----+
> > │1840│Mary Frances Cooke │1878│38│0 │
> > L----+-----------------------+----+--+-----
> >
> > -----T-----------------------T----T--T----┐
> > │1833│B Jeb Stuart │1864│31│1855│
> > +----+-----------------------+----+--+----+
> > │1836│B Flora Cooke Stuart │1923│87│0 │
> > L----+-----------------------+----+--+-----
> >
> >
> >
> >
> >
> >
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list