Created
October 7, 2012 21:44
-
-
Save lgfa29/3849711 to your computer and use it in GitHub Desktop.
R da Babi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
complete <- function(directory, id) | |
{ | |
nobs <- vector() | |
for(valor in id) | |
{ | |
monitor <- getmonitor(valor, directory) ##função anterior## | |
nobsdata <-sum(complete.cases(monitor)) ##informação do número de casos## | |
nobs <- c(nobs, nobsdata) | |
} | |
##função pra retornar os casos e os ids como dataframe## | |
resultado <- data.frame(id=id, nobs=nobs) | |
print (resultado) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment