Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0D4F94CC for ; Tue, 11 Oct 2011 05:22:07 +0000 (UTC) Received: (qmail 17724 invoked by uid 500); 11 Oct 2011 05:22:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17673 invoked by uid 500); 11 Oct 2011 05:22:06 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 43260 invoked by uid 99); 7 Oct 2011 11:20:02 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of psaffrey@illumina.com designates 206.190.72.217 as permitted sender) X-ASG-Debug-ID: 1317986374-424f62550001-z14J5S X-Barracuda-Envelope-From: psaffrey@illumina.com X-Barracuda-RBL-Trusted-Forwarder: 10.12.36.94 From: "Saffrey, Peter" X-Barracuda-Apparent-Source-IP: ::1 To: "user@couchdb.apache.org" Subject: Rendering a table Thread-Topic: Rendering a table X-ASG-Orig-Subj: Rendering a table Thread-Index: AcyE4jBibgTDPtDIS1OoH3etGx7yeg== Date: Fri, 7 Oct 2011 11:19:31 +0000 Message-ID: <272701FEF21A7746ABF94A81AF5101B43E2CA9@UKCH-PRD-EXMB01.illumina.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.46.123.88] Content-Type: multipart/alternative; boundary="_000_272701FEF21A7746ABF94A81AF5101B43E2CA9UKCHPRDEXMB01illu_" MIME-Version: 1.0 X-Barracuda-Connect: ussd-prd-exca01.illumina.com[10.12.36.94] X-Barracuda-Start-Time: 1317986374 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: http://10.10.0.14:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at illumina.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=HTML_MESSAGE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.76664 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message --_000_272701FEF21A7746ABF94A81AF5101B43E2CA9UKCHPRDEXMB01illu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm hoping to use couchdb (and possibly couchapp) to manage some experiment= al statistics. I'm having trouble finding more advanced examples to get me = going - much of the documentation is at the "hello world" level. I would like to store one document per experiment. For simplicity, at the m= oment each experiment has only a few values associated with it: { "header1": 3, "header2": 7, "header3": "hello!" } Let's say I have three documents like this. Some might be missing some head= ings. What I want to do is render an HTML table with headings "header{1,2,3}" and= a row per experiment. I might also like to compute a mean at the bottom, w= here the values are numeric. This seems to me a fairly standard use case, b= ut I can't find any code samples online. Can anybody point me at some? Thanks, Peter --_000_272701FEF21A7746ABF94A81AF5101B43E2CA9UKCHPRDEXMB01illu_--