[R] External functions called by my functions

2015-09-30 Thread Frederico Mestre
. Thanks, ​ ​Frederico Mestre – mestre.freder...@gmail.com ResearchGate: https://www.researchgate.net/profile/Frederico_Mestre Conservation Biology Unit (UBC) Research Center in Biodiversity and Genetic Resources – Évora (CIBIO-UE) Research Group in Applied Ecology (ApplEcol) University of Évora

[R] Error loading workspace

2014-12-04 Thread Frederico Mestre
Hello, I'm trying to load a workspace and I'm getting this error: value of 'SET_ATTRIB' must be a pairlist or NULL, not a 'double' Is there anything I can do to correct this? Cheers, Frederico Mestre [[alternative HTML version deleted

[R] Generate quasi-random positive numbers

2014-08-05 Thread Frederico Mestre
Hello all: Is it possible to generate quasi-random positive numbers, given a standard deviation and mean? I need all positive values to have the same probability of selection (uniform distribution). Something like: runif(10, min = 0, max = 100) This way I'm generating random positive numbers

[R] filling list of data frames

2013-06-27 Thread Frederico Mestre
Hello: I have a list of data frames, built like this: the second df is a result of a function applied to the first, and so on. So the ith df is always dependent on the (i-1)th df. I've been doing this using for loops. However I think I have too many for loops which is making my code run

[R] adding points to a point pattern

2012-09-03 Thread Frederico Mestre
Hello all: Is there any way to add points to a point pattern, while keeping a given minimum distance amongst this new points and the pre-existing points? Thanks, Frederico [[alternative HTML version deleted]] __

[R] RES: adding points to a point pattern

2012-09-03 Thread Frederico Mestre
Hello, I'm trying to make a function in R in which I need to do this. Frederico -Mensagem original- De: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Enviada em: terça-feira, 4 de Setembro de 2012 01:30 Para: Frederico Mestre; r-help@r-project.org Assunto: Re: [R] adding points

[R] RES: adding points to a point pattern

2012-09-03 Thread Frederico Mestre
Hello, Yes, I'm using spatstat. Sorry, I forgot to mention that. Thanks, Frederico -Mensagem original- De: Rolf Turner [mailto:rolf.tur...@xtra.co.nz] Enviada em: terça-feira, 4 de Setembro de 2012 02:04 Para: Frederico Mestre Cc: r-help@r-project.org; adrian.badde...@csiro.au

[R] cluster of points

2012-07-30 Thread Frederico Mestre
Hello: What I want to do is quite simple, but I can't find a way. I have a data frame with several points (x and y coords). I want to add another column with cluster membership. For example aggregate all the points that stand within a distance of 40 from each other. I've tried using

[R] C++ and R

2012-06-29 Thread Frederico Mestre
Hello: I have some C++ code and I want to know if it is ok to load it into R using .Call. Also, what's the difference between using Rdefines.h or Rinternals.h headers? It is just in the used macros? I've been reading Writing R Extensions but I'm a bit confused. Thanks,

[R] Compile C files

2012-06-26 Thread Frederico Mestre
Hello: Sorry, this might look like a beginner question, but I'm just starting to work on the C and R interface. I'm trying to compile a C file (with a function) to load it to an R function but, in the command line I keep getting a lot of errors, like:

[R] RES: Compile C files

2012-06-26 Thread Frederico Mestre
Hello: I just reinstalled R and Rtools. It works perfectly now. Thanks, Frederico -Mensagem original- De: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Enviada em: quarta-feira, 27 de Junho de 2012 01:06 Para: Frederico Mestre Cc: r-help@r-project.org Assunto: Re: [R] Compile

[R] Error: cannot allocate vector of size...

2012-04-10 Thread Frederico Mestre
of several analysis. What changed? I'm running R in a 64 bits, Windows 7 , 4 GB of RAM computer. Thanks, Frederico Mestre [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] delete all columns with all values equal to zero

2011-12-22 Thread Frederico Mestre
Hello all: I'm sure this is quite simple, but I tried several options and I still can't get I right. I've got a data.frame and I want to delete all columns of which the sum is zero. Any ideas? Thanks, Frederico Mestre [[alternative HTML version deleted