search for: someattribute

Displaying 6 results from an estimated 6 matches for "someattribute".

2009 Dec 22
3
vector indexing problem in multilevel data: assigning a specific value to all group members
...p. For example, I have a group leader (identified by a binary vector) and some attribute for all group members. I want to create a new vector that holds the attribute of the group leader for each individual in the data frame (code at the bottom of the post): personId groupId groupLeader someAttribute leaderAttribute 1 1 17 0 0.145833333 NA 2 2 17 1 0.218750000 NA 3 3 17 0 0.089743590 NA 4 4 22 0 0.003875969 NA 5 5 22 0 0.0864...
2011 Nov 21
1
Weird R's behaviour with a quoted name
Can someone explain why the following happens? --- :> quote(some.name) some.name :> bar <- structure(quote(some.name), class = "foo") :> quote(some.name) Error in print(some.name) : object 'some.name' not found :> bar <- quote(some.name) :> quote(some.name) Error in print(some.name) : object 'some.name' not found :> bar <-
2006 Jul 20
3
sort_by with via a parent models child
I am having a problem with ruby''s sort_by function. I want to sort a list of parent model objects based on the children of the parent models. Normally you might say sortedList = modelList.sort_by { |model| model[''someAttribute''] } What I am tring to do is sortedList = modelList.sort_by{ |model| model.children.find(:first, order=>"price desc" ).price} This doesn''t seem to have an effect on the list returned. Does anyone here have any experience using the sort_by function? -- Posted v...
2007 Nov 07
7
Help on loop
Hey, I have got a script that returns a long list of font family names, which I all want to store in a variable (array). I tried doing this with @f = font.family also in the for loop below but it only prints the last item when I want to display the results. require ''rubygems'' require ''RMagick'' include Magick for font in Magick.fonts puts font.family end
2015 Nov 04
0
ldap and proxy/proxy_maybe
...dir:~/Maildir/,mailQuota=quota_rule=*:bytes=%$ # Used for dn lookup pass_filter ? ? = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))) pass_attrs? ? ? = mail=user,userPassword=password,someAttribute=proxy,hostName=host default_pass_scheme = CRYPT
2006 Mar 06
4
Newbie problem with adding new method to a class
Hi! If i have Image class and i''d like to add ''create_thumbnail'' method to it, which will later be called from product controller, where to put this method and how to call it? I''ve tried putting it inside image controller and image model, then call it like Image.create_thumbnail, but it didn''t work - undefined method `create_thumbnail''