[R] glmulti wrapper for lmer does not produce results

2014-04-09 Thread anto.r
I posted this on SO, got no response. Sorry about cross-posting, but atleast I would like to know if I am understading something totally wrong I am using a `glmulti` wrapper for glmer (binomial) and the `summary` is: `This is glmulti 1.0.7, Apr. 2013. Length Class Mode 0 NULL NULL`

Re: [R] help with if statement

2012-12-04 Thread anto.r
DT<-data.frame(time=c(0,1,5,24,36,48,72),DV=seq(0,60,10)) time DV 10 0 21 10 35 20 4 48 30 5 84 40 6 96 50 7 120 60 You want to add 24 to values that are >=24 in 'time' DT[DT$time>=24,'time']<-DT[DT$time>=24,'time']+24 time DV 10 0 21 10 35 20 4 48 30 5 60

Re: [R] Subsetting columns in data.table

2012-12-04 Thread anto.r
DT = data.frame(x=rep(c("a","b","c"),each=3), y=c(1,3,6), v=1:9, w=3:11, z=LETTERS[1:9]) If I understand you right, and you want to select all rows where v>3 and W<10 with(DT, DT[which(v>3 & w<10),]) x y v w z 4 b 1 4 6 D 5 b 3 5 7 E 6 b 6 6 8 F 7 c 1 7 9 G you can use colSums, rowSums on th

Re: [R] convert multi dimensional array to list

2012-10-04 Thread anto.r
Hi Michael thanks! That was the option if I kept it an array. The list format with $ sign since it leaves me feeling that the names are there and can be easily accessed. Why would you rather not use the $ sign? I use R-Studio and there names can be selected from a drop-down list, I have found it

[R] convert multi dimensional array to list

2012-10-04 Thread anto.r
I have an 4D named array (the result of recast() on a dataframe) and would like to convert it to a list with the names retained. Example: >my.df<-expand.grid(name=c("Alf","Que"), month=c("May","Jun"), year=c("2011","2012")) >my.df$tmax<-sample(15:20,4) >my.df$tmin<-sample(10:15,4) >my.df.melt=mel

[R] selecting random points within a buffer

2010-01-22 Thread anto.r
helloo let me try rephrase my previous post this way. I have a distribution of points ( with cords) and I want to select only or two points that fall within a buffer distance from each point. I guess there should be some way to do this in R. Can someone help or suggest where I might find a solutio

[R] subsample clustered data

2010-01-22 Thread anto.r
Hi all I am pretty new to R and would like some help concerning subsampling my data. I have got locations of species presence that are clustered in some regions of my study area. using this for habitat modelling produces overfitting the denser areas. I would like to subsample the presence locatio