Displaying 3 results from an estimated 3 matches for "sdog".
Did you mean:
dog
2006 Aug 08
2
Getting data out of a loop
...Cs(a,b,b,c,a,b)
site <- c(1,1,4,4,1,4)
mat1 <- cbind(cata, catb, doga, dogb, rata, ratb,
bata, batb)
Df <- data.frame(site, id, mat1)
nn <- levels(Df$id)
Df
nn
rate <- c(2,3,4)
for (i in 1: length(nn)) {
dd<- subset(Df, id==nn[i])
scat <- sum(c(dd$cata,dd$catb), na.rm=T)
sdog <- sum(c(dd$doga,dd$dogb), na.rm=T)
srat <- sum(c(dd$rata, dd$ratb), na.rm=T)
sbat <- sum(c(dd$bata,dd$batb), na.rm=T)
sss <- c(scat,sdog, srat,sbat) * rate[i]
print(sss)
}
2006 Aug 07
0
Trying to do aseries of subsets with function or for loop
I want to calculate the "scat" etc, values for each
level of id, output a vector of these values that is
a <- c(scat, sdog, srat, sbat ) and do an rbind on
them. Each level of id has a different value of
rate.
So far it it looks to me like I can do this by a
series of repeated subsets of Df butI would think that
I should be able to do this with a function but I am
not
having any luck. Thus far, I'm not even...
2007 Feb 07
1
FOSDEM: Lodging and presentations
Hi all,
Since it looks like I''ll be attending FOSDEM, I now need to find some
lodging, and if possible I''d like to line up a presentation or four.
Someone in the community offered to let me crash with them if I came
to the conference (someone with the nick of ''robk'' on IRC, I think),
so I''d like to take that person up on it if possible.