Displaying 19 results from an estimated 19 matches for "vakili".
2009 Oct 13
7
lapply() reccursively
Hi all,
I was wondering whether it is possible to use the lapply() function
to alter the value of the input, something in the spirit of :
a1<-runif(100)
a2<-function(i){
a1[i]<-a1[i-1]*a1[i];a1[i]
}
a3<-lapply(2:100,a2)
Something akin to a for() loop, but using the lapply() infrastructure.
I haven't been able to get rapply() to do this.
The reason is that the "real"
2010 Aug 25
1
(no subject)
...ement data for my project and I want to use quantile
regression with multilevel or panel data in "R."
I dont find the basic version of software in R, so I have difficulty in using
it.
I would also appreciate if anyone more proficient in R could help me how to run
this.
best wishesÂ
M.A-Vakili
Department of Biostatistics
Faculty of Medicine
Shiraz/Iran
P.O.Box: 71348-45794
E-Mail: vakilima@sums.ac.ir or mavakili@yahoo.com
[[alternative HTML version deleted]]
2010 May 20
1
RSpython Ubuntu
Dear List,
I'd like to call pyhton function from within R. I tried installing the latest
version of RSPython:
wget http://www.omegahat.org/RSPython/RSPython_0.7-1.tar.gz
R CMD INSTALL --clean RSPython_0.7-1.tar.gz
I get a compile error (posted below).
Did anyone else run against this ? Is there a solution ?
checking for python... /usr/bin/python
Python version 2.6
Using threads
checking
2010 Jun 09
1
Rglpk
Hi list,
in the Rglpk_solve_LP function (::Rglpk),
on line 26, the function calls a function
as.glp_bounds() that i cannot access.
i'm trying to alter the Rglpk_solve_LP function
to add a line to retrieve column/row dual values.
everytime i change the slightest line of code inside
Rglpk_solve_LP() [to even add a print]
i get a
': could not find function "as.glp_bounds"'
2012 Mar 05
2
source for function sample() in package base?
Hi all,
were can i find the sources for the function sample()
(the one from the base package)
thanks in advance,
--
View this message in context: http://r.789695.n4.nabble.com/source-for-function-sample-in-package-base-tp4447796p4447796.html
Sent from the R help mailing list archive at Nabble.com.
2012 Apr 08
2
xyplot() does not plot legends with "relation=free" scales
Hi all,
I have this problem with lattice that xyplot() won't draw some of my axis labels if the type (i.e. the relation argument) of scales is set as free. For example, in the plot below, I would want it to also show:
1. the labels E1,...E6 below the 10th panel (i.e. 3rd row, 2 col)....just as it is now done below the 12th panel....
2. as well as the labels (2,4,6,8) on the top of panels 1
2010 Jun 08
0
Rsymphony
Hi list,
I have two question relating to the Rsymphony package:
a) is there a way to use 'warm starts' ?
i.e. if i successively call Rsymphony_solve_LP()
with only one constraints change, does it perform the optimization
from the simplex-origin or does it uses the previously found solution
[i.e. as is common usage, see for instance lpsolveAPI]
b) to what extend are sparse matrix
2011 Feb 02
2
multicore + xeon ?
Is there any reason to expect a problem ?
i'm running this script on the cluster down the hall:
module load R/2.11.0
R
library(multicore)
fxx<-function(ll) runif(1)
mclapply(1:10,fxx)
i get:
Error in fork() : Unable to fork.
less /proc/cpuinfo
yields:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU
2011 Apr 19
2
Robustbase source question
Dear All,
in the sources of robustbase, there appears a function called rPsort()
(say l253 of qn_sn.c). I could not find its source in the robustbase
package and a google search yields too many unrelated response.
Can anyone point to its source ?
thanks,
--
View this message in context: http://r.789695.n4.nabble.com/Robustbase-source-question-tp3459966p3459966.html
Sent from the R help
2011 Apr 23
1
R_qsort decreasing =T
Hello,
i'm using <R.h> & <Rmath.h>.
What is the c equivalent to sort(x,deceasing=T)
i.e. to get sort(x) i type R_qsort(x, 1, n), where
do i set the decreasing=T flag ?
More generally, is there a place where the
functions in the R sources are documented ?
Best,
--
View this message in context: http://r.789695.n4.nabble.com/R-qsort-decreasing-T-tp3470432p3470432.html
2014 Oct 30
1
DIY Rtools?
Dear List,
I'm currently working on an R package that
works great when compiled with GCC 4.8 under linux
but which doesn't seem to work so well when compiled
by the win builder (http://win-builder.r-project.org/).
After asking around a bit, the primary culprit could be
the older version of GCC used in Rtools.
Now, for academic purposes, I would like to have
a zip version of this
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
When I install an R package with cpp codes such as rrcov via CRAN (under
R 3.1.1, using no Makevars file and under Ubuntu 14.04 using GCC 4.8),
the cpp code is compiled with the -o3 flag (in fact, looking at the
Makeconf file this seem to again be the default since R 3.1.1) But when
I install my own package via CRAN it is compiled with the -o2 flag.
My questions are what is causing my
2011 May 16
0
Problem installing Rcplex in ubuntu
Dear List,
I'm trying to install Rcplex on a ubuntu 64 bit machine, and have not been
successful.
After installing cplex latest version from ibm's website (everything as
standard, except
had it installed unto ~/ (the home directory) rather than the default
directory).
i type (from inside the directory where Rcplex_0.3-0.tar.gz is):
>CPLEX_INCLUDE_PATH=~/ILOG/CPLEX/cplex
2008 Nov 14
1
ellipse in pairs plot
Hi dear list,
I'm scrambling with this:
i have a p-dimensional data frame for which i want to have a pairs() plot, with ellipse added in each lower.panel.
I want the ellipse's parameter (mu, sigma) to be extracted from the appropriate entries in a pre-computed matrix ("dab" in the code below).
Can it be done ?
Thanks in advance,
melly<-function (x, y, col =
2010 Dec 07
2
robustbase problem [bug?] in adjbox function.
hello list,
i'm a bit puzzled by the error message i get when i copy past this in R:
2014 Nov 04
1
Linking to the BH package introduces CRAN warnings
Dear all,
I'm working on a project that links to the BH package
(http://cran.r-project.org/web/packages/BH/index.html).
My packages doesn't call entry points which might terminate R nor
write to stdout/stderr instead of to the console.
However, it seems some of the codes in the BH package
might. At any rate, when I include some boost headers such as
boost/math/distributions/ through BH,
2015 Oct 14
0
gcc ubsan alignement test --minimal gcc version?
Dear Prof. Ripley,
Thank you for your answer. I think I am way over my head here.
(Using Doker adds a level of complexity that I'm afraid I can't
manage for now so I am happy with building Rdevel and using it
in to run these tests).
After building Rdevel with what I think are the correct options**
(just to avoid mistakes I have also fully removed R from my system
just before and
2015 Oct 13
2
gcc ubsan alignement test --minimal gcc version?
Dear All,
I'm trying to implement the section of the manual pertaining to the
gcc-ubsan test
carried by CRAN on my local computer (ubuntu 14.04):
http://www.stats.ox.ac.uk/pub/bdr/memtests/gcc-UBSAN/README.txt
I was wondering whether someone could tell what the minimal version
of the gcc tool chain needed to run the gcc-ASAN and gcc-UBSAN alignment
tests on ones local
2011 Apr 21
0
C source code question (Robustbase edition)
Hi all,
I have been trying to add the line:
h = n - p0 + 1;
just after
h = n / 2 + 1;
(line 131) in the source code (the original paper mention this is possible
for p0<n).
with p0 declared as an int (actually i used the same declaration
protocol as n everywhere in the code).
The "new" source compiles, but when i give it reasonable
values of p0, it runs unto