similar to: R Program

Displaying 20 results from an estimated 10000 matches similar to: "R Program"

2011 Nov 15
3
Create a function with multiple object as an output
I've seen some questions regarding the output of multiple objects from a function, however the suggestions all end up suggesting the use of return(list(result1=result1, result2=result2 , result3=result3)). How can I return multiple objects that are 2 big to be added to a list? -- View this message in context:
2012 Oct 01
1
Retrieve hypergeometric results in large scale
I'm going to use dhyper(x, m, n, k) to get a 95% coverage. Let me use an example to explain my problem: Suppose I have a urn containing 90 red and 10 black balls. Now I wanna remove 3 from the urn. By the following codes: m<-90;n<-10;k<-3; x<-0:3 dhyper(x,m,n,k) I can obtain the probability that 0,1,2,3 red balls will be removed. 0.000742115 0.025046382 0.247680891
2010 Mar 30
1
Multivariate hypergeometric distribution version of phyper()
Dear R Users, I employed the phyper() function to estimate the likelihood that the number of genes overlapping between 2 different lists of genes is due to chance. This appears to work appropriately. Now i want to try this with 3 lists of genes which phyper() does not appear to support. Some googling suggests i can utilize the Multivariate hypergeometric distribution to achieve this. eg.:
2006 Feb 28
3
EventPublisher (contribution)
I got a lot of great help yesterday on my calendar questions. Makes me want to post another contribution :-) This one is called EventPublisher. This was packaged also in Marco Jaeger''s recent post with his excellent Dialogs (a la Windows), but now I''ll post it by itself in case someone missed it, and also give a little explanation for ya''ll. This class allows you to
2006 Dec 09
7
Simulation with R
An apparatus exists whereby a collection of balls is displaced to the top of a stack by suction. A top level (Level 1) each ball is shifted 1 unit to the left or 1 unit to the right at random with equal probability. The ball then drops down to level 2. At Level 2, each ball is again shifted 1 unit to the left or 1 unit to the right at random. The process continues for 15 levels and the balls are
2010 Jan 12
2
optimization challenge
I have a challenge that I want to share with the group. This is not homework (but I may assign it as such if I teach the appropriate class again) and I have found one solution, so don't need anything urgent. This is more for fun to see if others can find a better solution than I did. The challenge: I want to read a book in a given number of days. I want to read an integer number of
2009 Mar 29
4
Constrined dependent optimization.
I have an optimization question that I was hoping to get some suggestions on how best to go about sovling it. I would think there is probably a package that addresses this problem. This is an ordering optimzation problem. Best to describe it with a simple example. Say I have 100 "bins" each with a ball in it numbered from 1 to 100. Each bin can only hold one ball. This optimization is
2008 May 29
2
Calculating conditional mean of large series of experiments
I need to repeat an experiment 1000 times. Each experiment involves randomly selecting one ball each from two separate bags. Each bag contains 10 balls, numbered 1, 2, 3, ... , 10. So the probability of selecting any one pair of balls is equal to all others. For each experiment, what I need to do is assign a variable A which represents the maximum number out of the two balls selected; and a
2008 Jul 19
2
OT Astricon/Digium Beach Ball Mailing
Just an FYI for Digium. I received a mailing today from you guys which was nice. The price of mailing was ~$1.60 and inside was an inflatable beach ball. Cool, but I tried to blow up the beach ball and the the seam where the part opens to inflate the ball was not connected to the ball whatsoever, so it went right in the trash. I wonder if the sick heat had anything to do with it, was mine just
2006 Jan 18
1
phyper returns 1 if x==k (PR#8499)
Full_Name: Utz J. Pape Version: 2.2.0 OS: linux Submission from: (NULL) (141.14.23.12) If I use phyper and set parameter x equal to k (meaning that all balls I draw are white) phyper returns 1 which is not (always) correct: pape at xxx:~> R2.2.0 --vanilla R : Copyright 2005, The R Foundation for Statistical Computing Version 2.2.0 (2005-10-06 r35749) ISBN 3-900051-07-0 R is free software
2006 Jul 10
3
Plurals and synonym lists
I want to correct spelling errors automatically. I have used search in the past where I can pass an argument through standard search to correct a word with up to 2 spelling errors for example or do the more Google like "Did ya mean?". In this case I just want to change it automatically and search. I am not too interested in specifying the number of characters it is out by. What is
2013 Feb 18
1
R function help!
simonj16 wrote > Consider an urn that contains 10 tickets, labelled: 1,1,1,1,2,5,5,10,10,10 > > I want to draw with replacement n=40 tickets. I am interested in the sum, > Y, of the 40 ticket values that I draw > > Write an R function named urn.model that simulates this experiement. What > I have below is not working. > > flip.n = function(p,n) { >
2012 Jun 15
1
Google Voice / Jabber auth problem
asterisk-1.8.13.0 iksemel-1.4 I have a client who setup a gvoice account using their domain in the login name: username=client at theirdomain@gmail.com This appears to have caused a problem with authentication. I've tried escaping the @ and quoting the login string, etc. but it simply won't authenticate. I don't believe my configuration is bad as the same server /
2009 Nov 26
1
How to suppress errors generated by readHTMLTable?
library(XML) download.file('http://polya.umdnj.edu/polya_db2/gene.php?llid=109079&unigene=&submit=Submit','index.html') tables=readHTMLTable("index.html",error=function(...){}) tables readHTMLTable gives me the following errors. Could somebody let me know how to suppress them? Opening and ending tag mismatch: center and table htmlParseEntityRef: expecting
2011 Aug 10
1
Reading XML files masquerading as XL files
R version 2.13.1 OS X (or Windows) Colleagues, I received a number of files with a .xls extension. These files open in XL and, by all appearances, are XL files. However, it appears to me that the files are actually XML: > readLines(dir()[16])[1:10] [1] "<?xml version=\"1.0\"?>" [2] "<Workbook
2003 Oct 01
1
hypergeometric & population estimates
"help" We want to estimate the number of caribou in Jasper. We recently conducted an aerial survey and saw 70 uncollared caribou and 8 of 11 collared caribou. We want to estimate the number of caribou in this population with 95% confidence limits. Gary White uses the hypergeometric distribution and determines the population estimates using maximum likelihood and 95%CL as
2001 Mar 16
2
SIGHUP/av[0] restart failure
Hello, OpenSSH 2.5.1p1 running under AIX 4.3.3ML06. When I send a HUP signal to the parent sshd, that parent process dies, it's children get "adopted" by init, and the following message is put in the error log ... Mar 13 12:01:48 whippet sshd[31644]: Received SIGHUP; restarting. Mar 13 12:01:48 whippet sshd[31644]: RESTART FAILED: av[0]='sshd', error: No such file or
2004 Oct 26
1
[LLVMdev] dist-check implemented
My final foray into the makefiles for a while has been completed. The dist-check target is the golden nugget I was hoping to get out of automake. But, now LLVM Makefiles have it too. dist-check does the following: * builds everything with "check" to ensure the source of the distribution is sane, essentially "make check". * builds the distribution tar balls with
2007 Sep 07
3
Plotting lines to sets of points
I am using R to plot baseball spray charts from play-by-play data. I have used the following command to plot the diamond: plot (0:250, -250:0, type="n", bg="white") lines(c(125,150,125,100,125),c(-210,-180,-150,-180,-210), col=c("black")) I have also plotted different hit locations using commands such as the following: points(subset(framename$hit_x,
2017 Dec 07
2
How to read or write Geolocation (RFC6442) data in SIP/PJSIP messages ?
Hello, I'm having a look at section 13.1 from SIP Connect v2 doc (see [1]). It refers to RFC6442 which gives the following example (sorry for its length): INVITE sips:bob at biloxi.example.com SIP/2.0 Via: SIPS/2.0/TLS pc33.atlanta.example.com;branch=z9hG4bK74bf9 Max-Forwards: 70 To: Bob <sips:bob at biloxi.example.com> From: Alice <sips:alice at