Displaying 20 results from an estimated 190 matches similar to: "Can I use "lme" to deal with grouping data when I only get one data point per group?"
2006 Aug 03
0
Grouping results.
What would be the best away to go about group results. For example: two
children contain the word "test" how would I get it to just display its
Parent once? Thanks for the help!
--
Posted via http://www.ruby-forum.com/.
2006 Aug 16
0
Polymorphic Associations and grouping users and projects
Hi all,
In my app I would like to create user groups in my admin. Currently I
have the following models and associations that facilitate this.
class User < ActiveRecord::Base
has_many :memberships
has_many :groups, :through => :memberships
end
class Membership < ActiveRecord::Base
belongs_to :group
belongs_to :user
end
class Group < ActiveRecord::Base
has_many
2006 Jul 31
1
Grouping arrays in the View
I remember reading something awhile back about an easy way to work with
object arrays in views. Say I want to arrange 20 images objects in rows
of 3. I have a collection of @users, where each user has a
user.thumbnail_url image. Is there some way to split these up so that
they can be easily parsed in rows of three?
Thanks,
Nathan
-------------- next part --------------
An HTML
2006 Jul 31
0
Newbie guidance: Dates and grouping
Hey all -
New to Ruby, though I''ve managed to stumble around in PHP (well, enough
to hack together what I needed).
I''ve initiated a (hopefully) simple project to keep track of upcoming
stories in our newspaper. It''s a one-table database with just a few
fields (writer, publication date, synopsis, notes, page assignment).
I''m slowly replacing the default
2006 Jun 02
1
Grouping models - table name conflicts
Hi all, it''s my first time posting on the list - this is something I couldn''t
find anywhere else
If I create two models, using
ruby script/generate model foo/bar
ruby script/generate model baz/bar
then the generator has no problem making app/models/foo/bar.rb and
app/models/baz/bar.rb, however the migrate files it creates both try to
"create_table :bars"
I thought
2006 Apr 14
1
Grouping a list of links by category
Hi,
I want to display a list of links grouped by category like this:
Group 1
Link 1
Link 2
Group 2
Link 1
Link 2
I have this in my controller:
def index
@links = Link.find(:all, :order => "category_id")
end
And this in the view:
<ul>
<% for link in @links %>
<li>
<a href="<%= link.url %>"><%= link.link
2007 May 07
1
grouping classes together
Hello,
I''m running puppet 0.22.4 on redhat linux mainly. I have a large number
of hosts and after reading the documentation, I concluded the following;
It would be easier to manage all nodes by creating a class called common
which in turn imported files from common/*.pp, and one class for server,
which inherits common, and in turn imports files from servers/*.pp (and
then a class called
2006 Feb 02
1
Grouping with tags or joins?
This more of a best practices question.
I''m implementing group functionality in a couple of applications.
The typical method, using HABTM, where you create a group and add
members, is typical.
For example, Users, Groups and Messages.
Does anyone prefer tagging instead?
Any advice would be great!
--
Lon Baker
http://www.speedymac.com
AIM: spdemac
2006 Feb 04
2
file_column path problem grouping controllers in to modules
Hey there,
good job with the file_column thing, but I''m experiencing a problem I
didn''t found about.
I''m grouping controllers in to modules (like Admin::Category Admin:Item) and:
url_for_file_column("dettaglio", "picture_url")
return this search path:
src="/detail/picture_url/development/5/dark.jpg"
there''s a development coming from
2008 Oct 07
0
Grouping controllers into modules
i have grouping administration controllers into module (admin) for
maintaining more order and logical structure.
then i have modified class controller:
class Admin::LocationsController < ApplicationController
....
end
i have created in views the directory "admin" and put the directory
"locations" into this.
i have setting the routes.rb:
....
map.namespace :admin do
2007 Nov 19
2
login help - grouping records
I have a long list of posts posted on different days and many posts
every day. I want them to arrange like following...
Date1
-----
post1
post2
Date2
-----
post3
post4
post5
How can I (say) group them to appear all posts of one date under their
related headng.
Because records have so many different days, it is confusing me.. I need
some generic solution.
Thanks in advance.
--
Posted via
2005 Oct 20
0
lmer and grouping fators
Hi,
I make this model using lme
m.lme <- lme(Glycogen~Treatment,random=~1|rTrt/Liver)
How to make this using lmer?
I try
> m.lmer <- lmer(Glycogen~Treatment+(1|rTrt/Liver))
Erro em lmer(Glycogen ~ Treatment + (1 | rTrt/Liver)) :
entry 0 in matrix[0,0] has row 2147483647 and column 2147483647
Al??m disso: Mensagem de aviso:
/ not meaningful for factors in: Ops.factor(rTrt, Liver)
2008 Mar 03
1
Barplot with grouping x axis and count data
Hello,
I am trying to make a barplot with nested count data which is build like
this: first there are several birds (n)laying 3 clutches composed of 2 eggs
half of the second and third clutch received treatment and this treatment
was tested to influence sex of offspring. I want a barplot showing counts
for male and female for every egg of every clutch. can someone tell me what
to do? I drew a
2009 Aug 04
0
Dahadi - Grouping Issues
Hi All,
Thanks for your time to look into this issue.
I want to create 5 channels for outgoing and 25 channels for incoming.
But i am unable to do so.
Here is how my chan_dahadi.conf looks like
[channels]
language=en
rxgain=1.0
txgain=1.0
usecallerid=yes
callerid=asreceived
busydetect=no
context=default
echotraining=no
echocancel=yes
echocancelwhenbridged=no
usecallingpres=yes
callprogress=no
2003 May 14
0
Help in grouping time stamped data and general stats help
Hi,
I am a new comer to R. I want to carrying out some exploratory data analysis
on some financial data which has been time stamped. The data is a Microsoft
database and I can access it using the RODBC package. The data consists of a
5 minute sampling of market prices. However, there are periods for which
there is no data (these periods occur randomly), and is typically caused by
a system
2006 May 19
0
e1071 probplot -grouping
Hello,
I am currently using probplot function in the e1071 package to do
cumulative probability plots . I want to be able to do multiple
cumulative probability plots ( based on a grouping of data) on a single
plot. Any help with this would be greatly appreciated.
Thanks.
2001 Mar 13
1
Display grouping parameter in coplot
I try to display the grouping variable in coplot.
It work, but it's special solution and rather ugly.
Any better idea?
# Simulate my data frame
data(state)
x77<-data.frame(state.x77)
x77$region<-state.region
coplot(Life.Exp ~ Income | region,
data=x77, show.given=F, subscripts=T,
panel = function(x, y,subscripts, ...)
{
panel.smooth(x, y, span = 1., ...)
2012 Jan 15
0
ZFS Metadata on-disk grouping
Does ZFS currently attempt to group metadata in large sector-ranges
on the disk? Can this be expected to happen "automagically" - i.e.
during each TXG close we have to COW-update whole branches of the
blockpointer tree, so these new blocks might "just happen" to always
coalesce into larger sector groups?
Rationale: larger regions dedicated to smallish block pointers might
be
2002 Oct 31
0
ANOVAs per grouping variable
Dear all
I have a question regarding repeating a series of nested ANOVAs.
The model is:
fit <- aov(response ~ treatment + plot/rep)
Treatment has three levels, there are three plots and each plot has
four replicates. Now, the experiment was also repeated six times
during the year. Ideally I would have liked to include sampling time
(month) as an additional factor in the analysis, but
2007 Sep 25
1
Create grouping from TukeyHSD (as a duncan test does)?
Hello everybody
1. If there is/ever will be a function to perform "duncan multiple range test" please inform me at once.
2. Is there a way to create a grouping as duncan does from TukeyHSD output? My experimental design contained 62 genotypes, so the pairwise comparison is not that usefull and clear to look at. How would I do that? Is there an other test that does give grouping as