Skip to content

v0.1.1

Choose a tag to compare

@jmbarbone jmbarbone released this 07 Feb 04:08

jordan 0.1.1

New features

  • adds fizzbuzz()
  • adds data.frame functions
    • adds quick_df() to turn a list into a data.frame (used internally, too)
    • adds complete_cases() to select rows without NA values
    • removes show_NA parameter from vector2df() and list2df()
      • for vectors this will now produce an NA value for the first column
      • for lists make.unique() is utilized for empty name named to retain the position of the list element
  • adds listing wrapper:
    • ls_object() to list all is.object()s
    • ls_dataframe() to list all is.data.frame()s
    • ls_function() to list all is.function()s
  • adds counts() and props() for counting unique elements in vectors and data.frames

Changes

Some exported functions and names have been changed to prevent conflicts with other popular packages

  • %||% is no longer exported; it is exported in rlang (and reexported in purrr) and is a relatively simply function anyway
  • collapse() is now collapse0() to avoid conflicts with glue; although glue::collapse() is meant to be deprecated, collapse0() is mostly a wrapper for paste0(), so this may be a better name
  • set_names() is now set_names0() to avoid conflicts with rlang (reexported from purrr) and magrittr

Fixes/updates

  • do_paste_combine() (used inside paste_combine()) simplified to remove use of outer()
  • improves version bumping/updating
    • added get_version() to retrieve the current package version (assuming you're in the directory)
    • utils::menu() is called to confirm that version should be updated
    • can update by either adding a number to the version (bump_version() or by date bump_date_version())
  • implements an improved non-exported string_extract() function inside str_extract_date() and str_extract_datettime()