search for: alagador

Displaying 14 results from an estimated 14 matches for "alagador".

2007 Oct 22
3
median value dataframe coming from multiple dataframes
...n efficient function. I have 4 dataframes with the same dimension. I need to generate other dataframe with the some dimension than the others where in each position it has the median value of the 4 values in the same position coming from the 4 dataframes. Grateful by your support, Diogo André Alagador [[alternative HTML version deleted]]
2008 Mar 27
2
colMeans in a data.frame with numeric and character data
...o know if it is posible by, someway, to get colMeans from a data.frame with numeric as well as character data, dispersed all over the object. Note that I would like to get colMeans neglecting character data. I am really in need of some function proceeding in that way… All the best Diogo André Alagador [[alternative HTML version deleted]]
2008 Nov 06
2
comparing matrices using max or min
...rices with the same dimension, A,B,C and I would like to produce a matrix D where in each position would retrieve the max(or min) value along A,B,C taken from the same position. I guess that apply functions should fit, but for matrices objects I am not getting it. thanks in advance, Diogo André Alagador [[alternative HTML version deleted]]
2007 Jul 20
3
R CMD SHLIB problem [make: *** No rule to make target ]
...rld!\n"); } } However when trying to compile the a C file in the command window: R CMD SHLIB holla.c I get the following message: make: *** No rule to make target `holla.d', needed by `makeMakedeps'. Stop. Can somebody give me a hand on this, Thanks in advance Diogo André Alagador [[alternative HTML version deleted]]
2007 Nov 06
2
wilcox test on two data frames
...n and I want to apply the wilcox.test to compare columns in the same position (i.e. 1st of df.A with 1st of df.B, 2nd of df.A with 2nd of df.B,...). Anyone give me an hint on this, as I think it is nicer to avoid loops, specially for huge dataframes (30000 x 200) Thanks in advance, Diogo André Alagador Portugal [[alternative HTML version deleted]]
2009 May 16
3
How to save R "clean" sessions in BATCH mode?
...to avoid mixing files from consecutive worksessions, and thus using R memory unnecessarily. I could use rm() to delete objects from the previous sessions but it seems not an efficient task. Any suggestions on how to perform this in Batch Mode? An examplified help would be nice! Diogo Andr? Alagador http://www.biochange-lab.eu/people/diogo-alagador Biodiversity and Global Change Lab, Museo Nacional de Ciencias Naturales, CSIC, Madrid, Espa?a Forest Research Centre, Instituto Superior de Agronomia, UTL, Lisboa, Portugal
2008 Mar 02
1
an efficient pairwise matrix cell's comparison function
...,j)=0, if A(i,j)!=0, than C(i,j)=B(i,j) 6 0 0 5 C= 0 0 3 5 0 0 0 0 Although not an expert I could build a function with 2 cycles (reading columns and rows) which is not quick. Maybe you can help me in this “challenge”. Much thanks in advance, Diogo André Alagador Biodiversity & Global Change Lab, Museo Nacional de Ciencias Naturales, CSIC, Madrid, España Forest Research Centre, Instituto Superior de Agronomia, Universidade Técnica de Lisboa, Lisboa, Portugal [[alternative HTML version deleted]]
2007 Jul 20
1
Column-mean-values for targeted rows
...problem: - to reformulate the function to gain efficiency; - to establish a C-routine (for example), where loops are more "speedy", and then interfacing with R; - to find some function/ package that already do that. Can anybody illuminate my way here, Mush thanks, Diogo Andre' Alagador [[alternative HTML version deleted]]
2008 Oct 31
4
[ifelse] how to maintain a value from original matrix without probs?
Dear all, I have a matrix with positive and negative values. >From this I would like to produce 2 matrices: 1st - retaining positives and putting NA in other positions 2nd - retaining negatives and putting NA in other positions and then apply rowMeans for both. I am trying to use the function ifelse in the exemplified form: ifelse(A>0,A,NA) but by putting A as a 2nd parameter it
2008 Aug 21
1
[dist]how to analise a large matrix?
...fy using euclidean metric. For that I am using dist?or daisy functions, but I am afraid that the message: Error in vector("double", length) : vector size specified is too large, means too much lines. Can anyone suggest me how should I analyse this matrix? Thanks in advance, Diogo Andr? Alagador MNCN,CSIC, Madrid, Spain ISA, Lisbon, Portugal ?
2009 Apr 03
2
Basic doubts on the use of several script files in R batch mode
...y I have a doubt regarding the procedures on the batch use of several script files (*.R). How can I do this? How can I define the order of files? My intention is to programme openings, math operations and savings of *.Rdata sessions, but in a sequential manner. Thanks in advance, Diogo Andr? Alagador Biochange Lab, Madrid, Spain
2011 Dec 12
0
Rsolnp package: warning messages
...this message comes from? Interestingly also is that using different seed values the direction of optimization of my (negative-value) function is always for maximization. How can this occur? Below you may find the code for ease of consultation. Thanks in advance, My best regards, Diogo Andr? Alagador Univ. ?vora, Portugal ## the code: ################################################################### ################################################################### ## DATA N=7 BR=12 br=c(1,1,2,3,2,1,1,2,1,1,1,1) A=c(1,0,0,0,1,0,0,0,0) B=c(0,0,0,0,1,0,0,0,0) C=c(1,1,0,1,0,0,1,0,0) D=c(0,...
2012 Feb 23
0
solnp inversed-Hessian problem
Dear all, I am tryng to solve a nonlinear optimization probel using the solnp function. I have different datasets. For the smaller I get full solutions, for the bigger I got an error message stating: ######################################## Iter: 1 fn: 101.8017 Pars: 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000
2012 Feb 27
0
solnp inconsistent error messages
Dear all, I am tryng to solve a nonlinear optimization probel using the solnp function. I have different datasets. For the smaller I get full solutions, for the bigger I got an error message stating: ######################################## Iter: 1 fn: 101.8017 Pars: 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000 0.21000