Code Monkey home page Code Monkey logo

lodown's People

Contributors

ajdamico avatar briatte avatar djalmapessoa avatar dqydj avatar drewmcnichols avatar ernietedeschi avatar gocdata avatar guilhermejacob avatar hhmacedo avatar hjacobcarlson avatar leoniedu avatar lukaswallrich avatar mjaffri avatar mpancia avatar simondgreenhill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lodown's Issues

add mtps administrative data

i can't get to this ftp site from either a us or an ivory coast ip address :/ if it's only administrative data, is it big enough to require monetdb? (2 million+ records?) thanks

DataSUS date formatting issue

@ajdamico, when I run
dbGetQuery( mdb_src$con , "SELECT RIGHT( cast( dtobito as text ) , 4 ) as ano , COUNT(*) from geral_cid10 GROUP BY ano order by ano" )
it returns:

    ano      L5
1  +004       1
2  +006  615147
3  +007 1467989
4  1996  908883
5  1997  903516
6  1998  931895
7  1999  938658
8  2000     496
9  2001  961492
10 2002  982807
11 2003 1002340
12 2004 1024073
13 2005 1006827
14 2006 1031691
15 2007 1047824
16 2008 1077007
17 2009 1103088
18 2011 1170498
19 2012 1181166
20 2013 1210474
21 2014 1227039

The first 3 lines and the year 2000 are wrong, as you can see in http://tabnet.datasus.gov.br/cgi/tabcgi.exe?sim/cnv/obt10uf.def, when you select Linha: Ano do óbito and all years.

can you tell me why?

please cran check before you push a commit

* checking loading without being on the library search path ... OK
* checking dependencies in R code ... NOTE
There are ::: calls to the package's namespace in its code. A package
  almost never needs to use ::: for its own objects:
  'recursive_ftp_scrape'
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
get_catalog_mtps: no visible binding for global variable 'URLdecode'
lodown_mtps: no visible global function definition for 'read.csv2'
Undefined global functions or variables:
  URLdecode read.csv2
Consider adding
  importFrom("utils", "URLdecode", "read.csv2")
to your NAMESPACE file.
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* DONE
Status: 2 NOTEs

See
  'C:/Users/anthonyd/Documents/GitHub/lodown.Rcheck/00check.log'
for details.


checking dependencies in R code ... NOTE
There are ::: calls to the package's namespace in its code. A package
  almost never needs to use ::: for its own objects:
  'recursive_ftp_scrape'

checking R code for possible problems ... NOTE
get_catalog_mtps: no visible binding for global variable 'URLdecode'
lodown_mtps: no visible global function definition for 'read.csv2'
Undefined global functions or variables:
  URLdecode read.csv2
Consider adding
  importFrom("utils", "URLdecode", "read.csv2")
to your NAMESPACE file.
R CMD check results
0 errors | 0 warnings | 2 notes

R CMD check succeeded

create docdir= in the catalog not a lodown_* function parameter

it should be another column in the data frame that get_catalog_* makes. that way, it defaults to something nicely, but users can change it the same way they can change other output names. you will also need to add this to the dir.create() line within lodown.R so the directory gets built. make sense? thanks

add three new lines to the ?lodown rd files for each dataset

when you add datasets, make sure you also add lines in lodown.R and reoxygenize. each new function pair needs one line in the first block and two lines in the second block. i don't have this hooked up to travis so make sure you test build in rstudio.. thanks bud

consider combining sim and sinasc into a single function

the code in lodown_sim and lodown_sinasc looks nearly identical. is there a good reason to keep them separate?

if they stay separate, please remove the redundant code and replace it with datasus-wide custom functions. see lodown_icpsr and get_catalog_icpsr for an example of how to structure this. thanks

please review censo_escolar data storage

hi, in this commit 60388c4 i removed the db_tablename from the catalog because it is not used. should it be? is the escola table the main table here, or should there be some other merge happening automatically?

in the same commit, i added the case_count column to the catalog using the current year's escola table. if that's the main table for this dataset, then i think that's what we want? what do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.