Re: [racket-users] Re: Pretty display of tabular data?

2019-03-22 Thread travis . hinkelman
I just came across a post on tabular data structures in R, Python, and SQL. The post is written has a friendly intro to the subject, which the author claims is a gap that needs filling. Thus, the post might not contain much information that is new

Re: [racket-users] Use cases for tables and records

2019-02-22 Thread travis . hinkelman
The data-science package isn't focused on the table (or data frame) structure (it uses lists of lists) but it includes tooling that is useful for working with data stored in that type of structure such as "split -> apply -> combine", column indexing, subsetting, grouping, and aggregating.

Re: [racket-users] "table" data structure in Racket

2019-02-21 Thread travis . hinkelman
After posing the question yesterday, I spent a little time poking around in the Github repository for Apache Arrow and came to the same conclusion, i.e., large project presumably facilitated by corporate backing. On Thursday, February 21, 2019 at 4:28:55 PM UTC-8, Alex Harsanyi wrote: > > > >

Re: [racket-users] "table" data structure in Racket

2019-02-20 Thread travis . hinkelman
Hi All, I'm resurrecting this thread to ask if anyone in the Racket community has Apache Arrow on their radar. It seems like Apache Arrow might be gaining steam. Apache Arrow is a cross-language development platform for in-memory data. > It specifies a standardized language-independent

[racket-users] nested for loops and suggested alternatives

2019-02-09 Thread travis . hinkelman
Hi All, I'm an R programmer that has recently started learning Racket. I decided to start by trying to create a simple age-structured population model. In R, I would initialize a matrix and use nested for loops to move through the elements of the matrix and propagate the population forward

[racket-users] Re: nested for loops and suggested alternatives

2019-02-10 Thread travis . hinkelman
Yes, this was the problem. I now have results that match the output from R. I've updated the gist with your line for the correct way to create a vector of vectors. I will have to spend some more time to understand the make-vector behavior. Perhaps my thinking is too constrained by my R

Re: [racket-users] Re: nested for loops and suggested alternatives

2019-02-10 Thread travis . hinkelman
I played around a bit with the math/matrix library. Actually, my first idea for a Racket learning project was to rewrite the code in the R popbio package (https://cran.r-project.org/web/packages/popbio/popbio.pdf) in Racket. But I bailed on that when I saw that eigendecomposition was still on

Re: [racket-users] Re: nested for loops and suggested alternatives

2019-02-10 Thread travis . hinkelman
Thanks, Daniel, this is helpful. I think that I understand your code, but it is a still a foreign way of thinking for me. Of course, that is a big part of why I'm learning Racket, i.e., to make programming with lists and recursion more natural. One key gap for me is how to build up data

Re: [racket-users] Re: nested for loops and suggested alternatives

2019-02-10 Thread travis . hinkelman
For the benefit of other beginners, I think there was a small typo in prop-projection.v1 where the intention was to call that function recursively rather than calling pop-projection in the body of pop-projection.v1. The typo is corrected below: (define (pop-projection.v1 A n iter) (if (zero?

Re: [racket-users] Communicating the purpose of Racket (was: hackernews)

2019-02-15 Thread travis . hinkelman
I will throw out the Julia homepage (https://www.julialang.org) as a good example of language marketing. Perhaps, though, I find the marketing effective because it is largely targeted at people like me. On Tuesday, February 12, 2019 at 1:18:26 PM UTC-8, Nadeem Abdul Hamid wrote: > > Maybe the

[racket-users] Re: Python's append vs Racket's append and helping novices understand the implications

2019-02-01 Thread travis . hinkelman
I don't have any suggestions for you but I agree that it is an important issue. My programming experience is primarily confined to R but I've recently started tinkering with Racket. My primary interest in Racket is to expand my programming horizons but I also see the potential to use it at

[racket-users] recursive function with multiple arguments

2019-04-10 Thread travis . hinkelman
Hi All, I'm trying to better understand recursion. I decided to rewrite the logmodr function from this blog post as a recursive function. I was easily able to write the recursive functions if all but one of the arguments

Re: [racket-users] redundancy in GUI callback functions

2019-05-26 Thread Travis Hinkelman
o another subtle bug that I didn’t fix. Suppose you type an > invalid character (like “a”) to the left text field. This will make the > field become red. Now, switch to the right field and type “32”. The left > field will output “0” while being red, though it probably should now b

[racket-users] redundancy in GUI callback functions

2019-05-25 Thread Travis Hinkelman
Hi All, I'm working through the tasks in 7guis to learn about GUI programming in Racket. My code for the temperature converter task works as expected but there is a lot of

Re: [racket-users] returning GUI elements in function?

2019-07-09 Thread Travis Hinkelman
date-progress-bar' so that `gauge' and `msg' have the correct values > there. > > Does that make sense? > > On Tue, Jul 9, 2019 at 7:23 AM Travis Hinkelman > wrote: > >> Hi All, >> >> I was playing around with creating a progress bar. The basic idea was >

[racket-users] returning GUI elements in function?

2019-07-09 Thread Travis Hinkelman
Hi All, I was playing around with creating a progress bar. The basic idea was straightforward. #lang racket/gui (define frame (new frame% [label "Progress Bar"] [width 300])) (define hpane (new horizontal-pane% [parent frame])) (define

[racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-07-14 Thread Travis Hinkelman
> > (Indeed, the first thing I thought > when I heard that this might happen was, did I make a mistake in > shifting my work to Racket? It is unlikely I would have come to > Racket if there wasn't an equivalent amount of elegance.) > I want to briefly echo this sentiment.

[racket-users] Re: Gui editable grid/table

2019-07-19 Thread Travis Hinkelman
Hi Raoul, Matthias Felleisen is working on a Racket implementation of the 7GUIs project, which includes a simple spreadsheet as one of the tasks. https://github.com/mfelleisen/7GUI Perhaps that will suit your needs. Best, Travis On Friday, July 19, 2019 at 8:17:58 PM UTC-7, Raoul Schorer