The main janitor functions can: perfectly format data.frame column names; isolate duplicate records; and provide quick one- and two-variable tabulations (i.e., frequency tables and crosstabs). Other janitor functions nicely format the results of these tabulations. These tabulate-and-report functions approximate popular features of SPSS and Microsoft Excel. This package follows the principles of the "tidyverse" and works well with the pipe function %>%. janitor was built with beginning-to-intermediate R users in mind and is optimized for user-friendliness. Advanced R users can already do everything covered here, but with janitor they can do it faster and save their thinking for the fun stuff.

Author | Sam Firke [aut, cre], Chris Haid [ctb] |

Date of publication | 2016-10-31 07:57:06 |

Maintainer | Sam Firke <samuel.firke@gmail.com> |

License | MIT + file LICENSE |

Version | 0.2.1 |

https://github.com/sfirke/janitor |

**add_totals_col:** Append a totals column to a data.frame.

**add_totals_row:** Append a totals row to a data.frame.

**adorn_crosstab:** Add formatting to a crosstabulation table.

**clean_names:** Cleans names of a data.frame.

**convert_to_NA:** Convert string values to true 'NA' values.

**crosstab:** Generate a crosstabulation of two vectors.

**excel_numeric_to_date:** Convert dates encoded as serial numbers to Date class.

**get_dupes:** Get rows of a 'data.frame' with identical values for the...

**janitor:** janitor

**ns_to_percents:** Convert a numeric data.frame to row-, column-, or totals-wise...

**remove_empty_cols:** Removes empty columns from a data.frame.

**remove_empty_rows:** Removes empty rows from a data.frame.

**tabyl:** Generate a frequency table from a vector.

**top_levels:** Generate a frequency table of a factor grouped into top-n,...

**use_first_valid_of:** Returns first non-NA value from a set of vectors.

janitor

janitor/inst

janitor/inst/doc

janitor/inst/doc/introduction.R

janitor/inst/doc/introduction.html

janitor/inst/doc/introduction.Rmd

janitor/tests

janitor/tests/testthat.R

janitor/tests/testthat

janitor/tests/testthat/test-date-conversion.R

janitor/tests/testthat/test-remove-empties.R

janitor/tests/testthat/test-tabyl.R

janitor/tests/testthat/test-get-level-groups.R

janitor/tests/testthat/test-adorn-crosstab.R

janitor/tests/testthat/test-crosstab.R

janitor/tests/testthat/test-clean-NAs.R

janitor/tests/testthat/test-ns-to-percents.R

janitor/tests/testthat/test-top-levels.R

janitor/tests/testthat/test-clean-names.R

janitor/tests/testthat/test-use-first-valid-of.R

janitor/tests/testthat/test-get-dupes.R

janitor/tests/testthat/test-adorn-helpers.R

janitor/tests/testthat/test-add-totals.R

janitor/NAMESPACE

janitor/NEWS.md

janitor/R

janitor/R/get_dupes.R
janitor/R/top_levels.R
janitor/R/ns_to_percents.R
janitor/R/crosstab.R
janitor/R/adorn_crosstab.R
janitor/R/tabyl.R
janitor/R/janitor.R
janitor/R/excel_dates.R
janitor/R/add_totals.R
janitor/R/get_level_groups.R
janitor/R/convert_to_NA.R
janitor/R/clean_names.R
janitor/R/use_first_valid_of.R
janitor/R/remove_empties.R
janitor/R/adorn_helpers.R
janitor/vignettes

janitor/vignettes/introduction.Rmd

janitor/README.md

janitor/MD5

janitor/build

janitor/build/vignette.rds

janitor/DESCRIPTION

janitor/man

janitor/man/excel_numeric_to_date.Rd
janitor/man/add_totals_row.Rd
janitor/man/crosstab.Rd
janitor/man/adorn_crosstab.Rd
janitor/man/remove_empty_cols.Rd
janitor/man/tabyl.Rd
janitor/man/ns_to_percents.Rd
janitor/man/get_dupes.Rd
janitor/man/janitor.Rd
janitor/man/top_levels.Rd
janitor/man/add_totals_col.Rd
janitor/man/convert_to_NA.Rd
janitor/man/clean_names.Rd
janitor/man/remove_empty_rows.Rd
janitor/man/use_first_valid_of.Rd
janitor/LICENSE

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.