Re: [Jprogramming] A simple plot

2014-04-19 Thread Bo Jacoby
Try this:       plot 4%~(,j.)_8 8 j./~ i: 8 Den 4:26 lørdag den 19. april 2014 skrev Linda Alvord : I would like to create ¼” graph paper  with both scales from  _2 to 2 .  I >can’t get vertical lines. > > > >Here are two horizontal lines: > > > >load ‘plot’ > >Plot 2 2$2 2 _2 _2 > > > >NB. 

Re: [Jprogramming] A simple plot

2014-04-19 Thread Linda Alvord
That's nice! Thanks Linda -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Bo Jacoby Sent: Saturday, April 19, 2014 3:14 AM To: [email protected] Subject: Re: [Jprogramming] A simple plot Try this:

Re: [Jprogramming] A simple plot

2014-04-19 Thread Linda Alvord
Sometimes typing errors are fun! I got an accordion. plot 4%~(,j.)A=:_8 8 j./~ i: 8 plot 4%~,j.A Pull the graph down and up vertically to see the accordion. Linda -Original Message- From: [email protected] [mailto:[email protected]] On

Re: [Jprogramming] A simple plot

2014-04-19 Thread Linda Alvord
Also I wrote my first function using & (,A)-:,j.A 0 0 0 f=: ;&,. (,A) f ,j.A ┌─┬───┐ │ _2│ 0j_2│ │ _2│ 0j_2│ │_1.75│0j_1.75│ │_1.75│0j_1.75│ │ _1.5│ 0j_1.5│ │ _1.5│ 0j_1.5│ │_1.25│0j_1.25│ │_1.25│0j_1.25│ │ _1│ 0j_1│ │ _1│ 0j_1│ │_0.75│0j_0.75│ │_0.75│0j_0.75│

[Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Piet de Jong
I call R from J and use the following setup to initiate the R interface load 'stats/r/rserve' pid=.{. 2!:2 '/Library/Frameworks/R.framework/Resources/bin/R CMD/Library/Frameworks/R.framework/Versions/2.12/Resources/library/Rserve/libs/i386/Rserve-bin.so --no-save' Everything works fine. Ho

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Raul Miller
pid is a result from 2!:2 and I think you want its argument? Thanks, -- Raul On Sat, Apr 19, 2014 at 7:31 PM, Piet de Jong wrote: > I call R from J and use the following setup to initiate the R interface > > load 'stats/r/rserve' > > pid=.{. 2!:2 '/Library/Frameworks/R.framework/Resources/

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Piet de Jong
But isn't pid defined in my first statement? ie. pid=.{. 2!:2 '/Library/ Maybe I am misunderstanding. On Sun, Apr 20, 2014 at 9:39 AM, Raul Miller wrote: > pid is a result from 2!:2 and I think you want its argument? > > Thanks, > > -- > Raul > > > On Sat, Apr 19, 2014 at 7:31 PM, Piet d

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Raul Miller
Try: 2!:3 '/Library/Frameworks/R.framework/Resources/bin/R CMD/Library/Frameworks/R.framework/Versions/2.12/Resources/library/Rserve/libs/i386/Rserve-bin.so --no-save' Thanks, -- Raul On Sat, Apr 19, 2014 at 7:46 PM, Piet de Jong wrote: > But isn't pid defined in my first statement? ie. > >

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Piet de Jong
2!:3 '/Library/Frameworks/...NB. stands for all the rest |domain error On Sun, Apr 20, 2014 at 9:55 AM, Raul Miller wrote: > Try: > > 2!:3 '/Library/Frameworks/R.framework/Resources/bin/R > > CMD/Library/Frameworks/R.framework/Versions/2.12/Resources/library/Rserve/libs/i386/Rse

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread bill lam
Or can you try killing the pid? Вс, 20 апр 2014, Piet de Jong писал(а): > 2!:3 '/Library/Frameworks/...NB. stands for all the rest > > > |domain error > > > > > On Sun, Apr 20, 2014 at 9:55 AM, Raul Miller wrote: > > > Try: > > > > 2!:3 '/Library/Frameworks/R.framework/Resource

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Raul Miller
Oops, you are correct. I apologize, I was working from memory and I misremembered the meanings of these foreigns. Here's something to try: 2!:3{.([smoutput)2!:2 'sleep 3' Here's what I get when I try that: 24283 144488800 144489160 0 (And there's a delay between the two lines.) If you do no

[Jprogramming] Logarithmic Mean

2014-04-19 Thread Raul Miller
https://en.wikipedia.org/wiki/Logarithmic_mean defines logarithmic mean as the the limit of difference of two numbers divided by the difference of their (natural) logs. The limit is to deal with the case where the two numbers are equal - in this case, we want an identity function. I was tempted to

Re: [Jprogramming] Calling R from J using Mac Jqt8.01

2014-04-19 Thread Piet de Jong
I get this: (after a short dela) 2!:3{.([smoutput)2!:2 'sleep 3' 69205 140735294190544 0 |interface error | 2!:3{.([smoutput)2!:2'sleep 3' What could be the problem with my system? Thanks for all the help. On Sun, Apr 20, 2014 at 12:01 PM, Raul Miller wrote: > Oops, you are correct