similar to: r-ish ? how can i improve my code?

Displaying 20 results from an estimated 20000 matches similar to: "r-ish ? how can i improve my code?"

2008 Mar 28
1
cpu usage high with windows change dir / winDialogString (PR#11045)
Good afternoon, This is possibly a windows only bug, definitely of comparatively low importance - but for the sake of completeness here we go. I've searched http://bugs.R-project.org/ etc., but can find no mention. For RGui.exe, the CPU usage goes to 100% for certain dialog boxes for the duration that the dialog box is visible, e.g. * check CPU usage is low * On the RGui.exe menu chose
2012 Mar 14
2
Moore-Penrose Generalized determinant?
Is there a function in R to calculate the generalized determinant of a singular matrix? - similar to the ginv() used to compute the generalized inverse. I can't seem to find any R related posts at all. Thanks in advance, Sean O'Riordain Trinity College Dublin -- View this message in context: http://r.789695.n4.nabble.com/Moore-Penrose-Generalized-determinant-tp4471629p4471629.html Sent
2008 Dec 01
1
trivial spelling correction
Good evening, Spotted a very minor spelling mistake in the source for the grep help. And thanks to R-Core for all their work - it's a tribute to R-Core, that these sort of "problems" are rare indeed. Best regards, Sean O'Riordain Dublin sean at sean7:~/R/RSVN/R/trunk/src/library/base/man$ svn diff Index: grep.Rd
2005 Aug 09
2
connexion problem getHdata (HMisc)
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** Hi Just installing R and some
2006 May 11
4
data input strategy - lots of csv files
Good morning, I have currently 63 .csv files most of which have lines which look like 01/06/05,23445 Though some files have two numbers beside each date. There are missing values, and currently the longest file has 318 rows. (merge() is losing the head and doing runaway memory allocation - but thats another question - I'm still trying to pin that issue down and make a small repeatable
2011 Mar 06
2
Monte carlo help
Hello, I am currently doing my project and I need some help. I am trying to schedule tutors for a study room where students come in and out for helps. My goal is to schedule the tutors to maximally accomodate to the flow of students that need help with math so that each tutor is given an appropriate(also consecutive) hours of schedule. I am using monte carlo simulation for this, however I have
2008 Mar 19
1
running balance down a dataframe referring back to previous row
Good morning, I've searched high and low and I've tried many different ways of doing this, but I can't seem to get it to work. I'm looking for a way of vectorising a "running balance"; i.e. the value in the first row of the dataframe is zero, and following rows add to this running balance. This is easy to write in a loop, but I can't seem to get it working in
2003 Jun 12
2
R_PHP_Online version 0.2 with Security Fix
Hi all, Thanks to Dr Paul Murrell in New Zealand to remind me of security consideration. I am releasing version 0.2 with security fix. This version will allow you to add banned R function names in a list. R_PHP_Online is a PHP CGI web interface to run R programs online, with the capability to show graphics online. You can get current version of R_PHP_Online from http://steve-chen.net/R_PHP/
2015 Apr 22
3
distribucion de IRWIN HALL
.... Un código más optimizado para la aproximación Monte Carlo de la distribución de IH N=10000 # tamaño simulación Monte Carlo n=5 # numero de uniformes cdf.IH <-function(x,n,N) { z=replicate(N,sum(runif(n))) apply(outer(x,z,">="),1,mean) } x=seq(0,5,.1) y=cdf.IH(x,n=n,N=N) plot(x,y,type="l") Un saludo. Olivier ----- Mensaje original ----- De:
2008 Mar 29
0
cpu usage high with windows change dir / winDialogString (PR#11051)
On 28/03/2008 12:05 PM, seanpor at acm.org wrote: > Good afternoon, > > This is possibly a windows only bug, definitely of comparatively low > importance - but for the sake of completeness here we go. I've > searched http://bugs.R-project.org/ etc., but can find no mention. > > For RGui.exe, the CPU usage goes to 100% for certain dialog boxes for > the duration that
2010 Oct 06
4
loop in R
Dear all, I need to do a loop in R, but I am not sure the software is generating "n" times the variables I request differently. When I ask to print the last matrix created, I just can see the loop for n=1. To be more precise, supose I need to simulate 10 times one variable and I want to fit the 10 variables simulated in a matrix. I dont really know what I am doing wrong, but I just
2005 Dec 15
1
precision of rnorm
How many distinct values can rnorm return? I assume that rnorm manipulates runif in some way, runif uses the Mersenne Twister, which has a period of 2^19937 - 1. Given that runif returns a 64 bit precision floating point number in [0,1], the actual period of the Mersenne Twister in a finite precision world must be significantly less. One of the arguments for Monte Carlo over the bootstrap is
2013 Nov 01
5
cat with backspace and newline characters
Hi, when mixing newline and backspace characters I get the following output (see below). In the second call, the backspace character is simply not applied. Is this normal behaviour? Thank you. > cat("abc\b") ab> cat("abc\b\n") abc > [[alternative HTML version deleted]]
2007 Aug 21
1
clusterCall with replicate function
I am trying to run a monte carlo process using snow with a MPI cluster. I have ~thirty processors to run the algorithm on and I want to run it 5000 times and take the average of the output. A very simple way to do this is to divide 5000 by the number of processors to get a number n and tell each processor to run the algorithm n times. I realize there are more efficient ways to manage the
2015 Apr 21
3
distribucion de IRWIN HALL
estimados estoy considerando programar la funcion de distribucion de Irwin hall. lamentablemente no he tenido exito, pido que alguien me pueda colaborar con aquello, les quedo agradecido de antemano. -- atte. Lic. Genaro Llusco Silvestre gellusco en gmail.com Telf: 74028671 blog personal es: http://www.cientificest.blogspot.com [[alternative HTML version deleted]]
2008 Nov 20
4
Dequantizing
I have some data measured with a coarsely-quantized clock. Let's say the real data are q<- sort(rexp(100,.5)) The quantized form is floor(q), so a simple quantile plot of one against the other can be calculated using: plot(q,type="l"); points(floor(q),col="red") which of course shows the characteristic stair-step. I would like to smooth the quantized
2003 Mar 31
3
monte carlo method for circle area
Hello everyone I hope Im not bothering you all again. I have just begun to use R and so Im not yet familiarized with it.. I ve got an assignment which consists in calculating the area of a circle given a certain radius and center using the monte carlo method, which means that I have to plot a circle given its parameters. Limit the area inside it...with as many sample points as possible...and
2006 Nov 05
2
Generating a double-exponential jump diffusion process
Dear R Users, Does anyone know of a package which can generate random realisations of a double-exponential jump diffusion process with a drift ? Something where I can specify the likelihoods of an up or a down jump, the drift rate, and the mean size, and get back a vector of realisation of the process (for purposes of a Monte-Carlo). Kind regards, Tolga
2016 Sep 26
2
Publication & Project: Verificarlo: checking floating point accuracy through Monte Carlo Arithmetic
Hi, We have recently published a paper on floating point accuracy analysis through Monte Carlo Arithmetic. We also released the open-source tool Verificarlo (https://github.com/verificarlo/verificarlo) that relies on LLVM for instrumenting floating point operations. Could you please add our paper to http://llvm.org/pubs/ ? Verificarlo: checking floating point accuracy through Monte Carlo
2005 Sep 23
4
books about MCMC to use MCMC R packages?
Dear list users, I need to learn about MCMC methods, and since there are several packages in R that deal with this subject, I want to use them. I want to buy a book (or more than one, if necessary) that satisfies the following requirements: - it teaches well MCMC methods; - it is easy to implement numerically the ideas of the book, and notation and concepts are similar to the corresponding R