Skip to content

Instantly share code, notes, and snippets.

@lgfa29
Created October 7, 2012 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgfa29/3849711 to your computer and use it in GitHub Desktop.
Save lgfa29/3849711 to your computer and use it in GitHub Desktop.
R da Babi
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