Displaying 20 results from an estimated 8000 matches similar to: "How does R vary from SAS?"
2005 Jul 08
3
How do you sort a data frame on a selection of columns?
This is what to start with:
Data Frame A B C D
c1 4 y 5
c3 6 d 7
c1 5 t 6
Now sort on A then C
This is what to end with:
Data Frame A B C D
c1 5 t 6
c1 4 y 5
c3 6 d 7
I assume it is something like this:
attach(DF)
sort(DF,partial=c(A,C))
Thanks in advance.
Meredith
[[alternative HTML version deleted]]
2004 Aug 19
3
Do you know if you can map a large minimum spanning tree in R?
Thanks Mike.
My data has longitude and latitude coords and I used distAB {clim.pact}
then mst {ape} to calculate my minimum spanning tree. The nodes are
telecoms sites from all over Australia. My goal is to determine the
minimum cost of linking them via cabling, and I'm starting by
calculating the distance "as the crow flies", but will probably
eventually need to calculate the
2005 Aug 02
6
can we manage memory usage to increase speed?
Hi,
Thanks for reading.
I am running a process in R for microarray data analysis. RedHat Enterprise Linux 4, dual AMD CPU, 6G memory. However, the R process use only a total of <200M memory. And the CPU usage is total to ~110% for two. The program takes at least 2 weeks to run at the current speed. Is there some way we can increase the usage of CPUs and memories and speed up? Any
2005 Apr 15
2
Help with "MERGE" gratefully accepted
Hello
How do I use function 'MERGE" to combine the FILE A and FILE B below to make FILE C?
Thank you
FILE A
140 151 167
30.1 11.4 40
FILE B
140 167
5.7 30.3
FILE C
140 151 167
30.1 11.4 40
5.7 NA 30.3
2004 Feb 05
2
Histograms by two factors
Hi
I am trying to print out means, STDs and histograms under two sets of factors. I can manage it for one set - see below but not for two sets. That is, I want ot print out the mean STD and Histogram for each ITEM code within each DELIVERABLE code. In addition I can only get to view the histogram for the last item. How do you get R to stop overriding the histogram for eg level 1 for factor 1
2018 Feb 15
2
package MonteCarlo error: object 'packages' not found
R-users,
I can't tell what's causing the following error. The vignette does not
make a reference to a "packages" option or parameter.
> library(MonteCarlo)
Loading required package: abind
Loading required package: codetools
Loading required package: rlecuyer
Loading required package: snow
Loading required package: snowfall
> infest_kud_fun<-function(x,A,B){
+??
2018 Feb 15
0
package MonteCarlo error: object 'packages' not found
This looks like the sort of thing that you should ask the package
maintainer (?maintainer).
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Feb 15, 2018 at 11:39 AM, john polo <jpolo at mail.usf.edu> wrote:
>
2009 Jan 31
1
[LLVMdev] -msse3 can degrade performance
On Saturday 31 January 2009 03:42:04 Eli Friedman wrote:
> On Fri, Jan 30, 2009 at 5:43 PM, Jon Harrop <jon at ffconsultancy.com> wrote:
> > I just remembered an anomalous result that I stumbled upon whilst
> > tweaking the command-line options to llvm-gcc. Specifically, the -msse3
> > flag
>
> The -msse3 flag? Does the -msse2 flag have a similar effect?
Yes:
$
2006 Jan 26
3
How do you convert this from S Plus to R - any help appreciated . thanks
exportData(MU.Cost,paste("C:/RAUDSL/S",as.character(MU.Cost$Run.Id[1]),"
.",as.character(MU.Cost$MU.Id[1]),".MU.PRICE.OUTPUT.txt",sep=""),append
= FALSE,type="ASCII",quote=FALSE)
[[alternative HTML version deleted]]
2004 Sep 20
3
montecarlo simulation
Hy!
I would like to know how run a montecarlo simulation with R.
Thank you!!!!
Francesca Matalucci
__________________________________________________________________
Accesso Internet Gratis per utenti Excite! Attivalo subito!
http://www.excite.it/hitech/accesso
Il Mio Excite. Personalizza la tua Home page Excite come vuoi tu!
http://www.excite.it
AAA/Relazioni. Sfoglia gli annunci e trova la
2002 Apr 09
1
write.table
Hello,
When using write.table I am getting two variables pasted together (not
by choice). Has anyone else had this happen?
Specifically, I have the following:
d _ read.dta(paste('/montecarlo/forecast/off/',F,'.dta',sep=''))
write.table(d,file=paste('/montecarlo/forecast/off/csv/',F,'.csv',sep=''),
row.names=FALSE, col.names=FALSE,
2005 Apr 29
2
Iterative process for reading in text files
Hello
Instead of reading in group1.txt I want to read in groups1 for the first iteration of i, then groups2 for the second and so on. Obviously I can't use groups(i) but assume there is a way to do this.
group<-read.table("C:/Data/April 2005/group1.txt",header=T)
thanks in advance
Meredith
2012 May 14
2
[LLVMdev] SIV tests in LoopDependence Analysis, Sanjoy's patch
On Mon, 14 May 2012 11:46:02 -0700
Preston Briggs <preston.briggs at gmail.com> wrote:
> On Sat, Apr 21, 2012 at 6:08 AM, Sanjoy Das
> <sanjoy at playingwithpointers.com> wrote:
> >
> > Sorry for having been quiet for so long, I have my university exams
> > going on, and will be able to contribute only after the coming
> > Friday.
>
> Gents,
>
2009 Jan 31
2
[LLVMdev] -msse3 can degrade performance
I just remembered an anomalous result that I stumbled upon whilst tweaking the
command-line options to llvm-gcc. Specifically, the -msse3 flag does a great
job improving the performance of floating point intensive code on the
SciMark2 benchmark but it also degrades the performance of the int-intensive
Monte Carlo part of the test:
$ llvm-gcc -Wall -lm -O3 *.c -o scimark2
$ ./scimark2
Using
2012 May 14
0
[LLVMdev] SIV tests in LoopDependence Analysis, Sanjoy's patch
On Mon, May 14, 2012 at 1:30 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> Can you explain this comment:
> > With minor algebra, this test can also be used for things like [c1 +
> > a1*i + a2*j][c2].
It's really too simple to deserve mention...
Given a subscript pair, [c1 + a1*i + a2*j] and [c2], we can test for
dependence using the RDIV test by rewriting as [c1 + a1*i]
2013 Jan 28
1
Using loop for a random vector (Montecarlo method)
Hi,
I would like to replicate a sort of Montecarlo experiment:
I have to generate a random variable N(0,1) with 100 observations but I have
to contaminate this values at certain point in order to obtain different
vectors with different samples:
tab<-function(N,n,E,L){
for(i in 1:100){
X1<-rnorm(N*(1-a),0,1)
X2<-rnorm(N*(a),E,L)
X_tab<-sample(c(X1,X2),n,replace=T)
}
return(X_tab)}
2005 Sep 01
2
SpatStat Kest - Error Message help
Hi I'm working with the function Kest in the package SpatStat (under LINUX
with R 2.1.0). In order to evaluate the statistical significance of my
point pattern I'm doing 999 Montecarlo replications. The script that use
the Kest function runs OK for most of the different point patterns that I
have but for a particular point pattern, which have only 17 points, it
runs until the 34th
2017 Jun 06
2
Plot MArginal distribution in the correct place
Hi all,
I have this code, but the marginal distribution plot doesn?t appear aligned
with the left plot.
I think could be something about layout or par() mar.
The code was programmed by me time ago.
Can anyone help me to get the marginal distribution on the center (more
higher centered)
id.txt
Could have this code:
05/01/2016;9335,200195
06/01/2016;9197,400391
07/01/2016;9059,299805
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
2006 Nov 16
2
Stochastic SEIR model
Dear colleagues,
I?m a new R-help user. I?ve read the advertisements about
the good manners and I hope to propose a good question.
I?m using R to build an epidemiological SEIR model based
on ODEs. The odesolve package is very useful to solve
deterministic ODE systems but I?d like to perform a
stochastic simulation based on Markov chain Montecarlo
methods. I don?t know which packages could be