Hi,
first of all 'sorry' for my rather late post on this topic...
Did you already came across the R command 'Rprof' ? This might help you
to find answers to your problem in terms of CPU time/command.
I use 'Rprof' like this:
>Rprof()
>source("yourCode.R")
>Rprof(NULL)
This produces a file calle
Original Message
Subject: [R] how to obtain the CPU time of my program
From: gang xu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: 13.09.2007 17:16
> Dear R users and experts,
>
> I am current running a program (a series of commands) in R. such as:
>
Here's how to use it:
f <- function() {
<>
}
system.time( f() )
It is not required to define a function, but i think it is easier.
Gabor
On Thu, Sep 13, 2007 at 04:16:45PM +0100, gang xu wrote:
> Dear R users and experts,
>
> I am current running a program (a series of commands) in R. such
Dear R users and experts,
I am current running a program (a series of commands) in R. such as:
A <- as.matrix(read.table("C:/LP.txt"));
a=which(memb==q); b=a; B=as.matrix(A[a,b])
LS=sum(B)/2;
TL=sum(A)/2
i<-c(1:NN);
D=sum(A[a,i]);
how can i obtain the CPU time used for these commands ?
I h
4 matches
Mail list logo