similar to: How to append the random no.s for different variables in the same data.frame

Displaying 12 results from an estimated 12 matches similar to: "How to append the random no.s for different variables in the same data.frame"

2011 Mar 11
1
Generation of random numbers in a function - (Return command)
Dear R helpers I have following data.frame and for each product_name, I have associated mean and standard deviation. I need to generate 1000 random no.s for each of these products and find the respective mean and standard deviation.   My R code is as follows.   library(plyr) library(reshape2)   filtered_new <- data.frame(product_name = c("P1", "P2", "P3",
2012 Apr 23
1
ggplot2 - geom_bar
Hello, I've some problem with the ggplot2. Here's a small example: --8<-- library(ggplot2) molten <- data.frame(date=c('01','01','01','01', '02','02','02','02'), channel=c('red','red','blue','blue',
2006 Mar 22
1
How to retrieve attribute values of objects?????
Hi, I am writing following line in my code:- ================= @product1=Product.find(:all, :conditions => ["id = ? ", params[:product][''product_id''+count.to_s]]) print @product1.inspect =========================== So I am getting on console following output. ========================== [#<Product:0x3cd61c8 @attributes={"demand"=>nil,
2004 Jun 24
1
Re: [fwd: [Fwd: Re: network response] ]
> From: Chris Garrigues <cwg-bcc@deepeddy.com> > Date: Thu, 24 Jun 2004 09:45:16 -0500 > > [2004/06/24 07:38:05, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(1782) > ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (N > o such object) These lines appear to all be searching for base="ou=group,dc=borderent,dc=com,dc=borderent,dc=com"
2008 May 28
2
Gantt chart like graphics
Dear R Community, I have a dataframe like this dat product1 product2 ... productn 01.1.2008 1 1 1 02.1.2008 1 1 2 . 15.2.2008 2 2 NA . 04.4.2008 2 2 1 05.4.2008 NA 2 NA (date ascending order, 1:n products with status 1, 2 or NA) and want to produce a graphic like
2007 Mar 26
2
Failure creating model in spec setup not reported?
Hi I''ve just tracked down a wierd error that AFAICT is caused by an error not being raised in the setup: context "An Asset" do setup do @provider = Provider.create(:name => "Provider1") @product = Product.new(:name => "Product1", :provider => @provider) @applicant = Applicant.new(:first_name =>
2007 Jul 24
11
Mock or Stub strategy for validates_uniqueness_of
Hi, I''m a bit stuck with mocking a unit test of a join model with regards to a validates_uniqueness_of clause. I have class Book < AR:B has_many :clippings various validates_presence_of etc end class Clip < AR:B has_many :clippings various validates_presence_of etc end class Clipping < AR:B belongs_to :book belongs_to :clip validates_uniqueness_of :clip_id,
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on site navigation that can deal with any model being in the nav, allow nesting, and can dynamically update. So I thought about it for a while, and decided on a MenuItems class, which contained the position of the child in relation to it''s siblings, where the parent and the child were polymorphic. Then a given
2011 May 09
4
Slightly OT: Android phone as sip-gw?
Hi, i have some spare (read: Boss get's a new one every few month ;)) Android Phones laying around. Does someone know a way of using them as a mobile gateway for asterisk? I could not find any SIP-Gateway in the Market, and i don't think it's possible to use the GSM Audio directly with something like chan_datacard... Regards, Jay -------------- next part -------------- An HTML
2008 Mar 31
0
Advice on queue setup needed please.
Hello, I have two sites. Both the sites will require queues for their own reason, own campaigns, etc. Like site1 would handle product1, product2, product3, while site2 can do product4, but can also do customer support for product1 and if anything, can transfer to site1's product1 queue (usually via SIP) Also, a few of these queues will require AgentLogin() type logging in, and some
2004 Sep 09
0
multiple users from the same machine?
I'm concerned about the machine known as accountingii in the below smbstatus: Samba version 3.0.5pre2-SVN-build-1326 PID Username Group Machine ------------------------------------------------------------------- 2727 bbeerman users bbeerman1 (10.2.240.172) 30957 llawrence users df2x1121 (10.2.240.190) 28942
2005 Sep 01
0
Teething problems with Ajax.updater
Hi all, Forgive what I expect is a silly question. I have the following code: #CONTROLLER def calculate render :partial => ''calculate'' end #CALCULATE PARTIAL <%= update_element_function("update_1", :position => :bottom, :content => "<p>New product1!</p>") %> #VIEW <p><label for="order_unit_price">Unit