Displaying 2 results from an estimated 2 matches for "total_sums".
2007 Dec 31
0
Optimize jackknife code
Hi,
I have the following jackknife code which is much slower than my colleagues C code. Yet I like R very much and wonder how R experts would optimize this.
I think that the for (i in 1:N_B) part is bad because Rprof() said sum() is called very often but I have no idea how to optimize it.
#O <- read.table("foo.dat")$V1
O <- runif(100000);
k=100 # size of block to delete
2009 May 06
2
X and Y axis labels on a barplot
Dear all,
I have produced a barplot and wish to alter the axes a little. In place of the variable names appearing on the x-axis, I'd like to have the numbers 1986 to 1995. I have tried using the argument xlim=c(1986,1995) in the barplot command but receive: "Error in plot.window(xlim, ylim, log = log, ...) : invalid 'xlim' value"
Also, on the y-axis, the values are