search for: mydataframename

Displaying 2 results from an estimated 2 matches for "mydataframename".

Did you mean: dataframename
2011 Sep 13
3
x %>% y as an alternative to which( x > y)
...on(table, x) { return(which(table > x)) } "%<%" <- function(table, x) { return(which(table < x)) } test <- c(NA, 1:4,NA,5) test %>% 2 # [1] 3 4 6 test %<% 2 # [1] 1 Why do I want to do this? Because in coding, I often end up with big chunks looking like this: ((mydataframeName$myvariableName > 2 & !is.na(mydataframeName$myvariableName)) & (mydataframeName$myotherVariableName == "male" & !is.na(mydataframeName$myotherVariableName))) Which is much less readable/maintainable/editable than mydataframeName$myvariableName > 2 & mydataframeName...
2011 Aug 16
1
Fit Gompertz' curve'
Hi, I build a graph taking into account the times: 1, 2,4,6,8,10,12,15,18,21,24,28,32 and 48. Be that the scale of the X axis does not look right. It seems equidistant. (graph attached) What changes have I to do in the following commands so that the scale be correct? interaction.plot(Tempo, Trat, Valor, ylim=c(0, 2), las=1, lty=c(1,2,3,4), lwd=3, bty='l',