Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix + switch maintainer #2

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
^\.travis\.yml$
^.*\.Rproj$
^\.Rproj\.user$
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 3 space indentation
[*.py]
indent_style = space
indent_size = 3
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@

# R data files from past sessions
.Rdata
.Rproj.user

# Mac folder stuff
.DS_Store

11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
Package: binr
Title: Cut Numeric Values Into Evenly Distributed Groups
Version: 1.0
Title: Cut Numeric Values into Evenly Distributed Groups
Version: 1.2
Author: Sergei Izrailev
Maintainer: Sergei Izrailev <sizrailev@collective.com>
Description: This package provides algorithms for cutting numerical values
Maintainer: Sergei Izrailev <sizrailev@jabiruventures.com>
Description: Implementation of algorithms for cutting numerical values
exhibiting a potentially highly skewed distribution into evenly distributed
groups (bins). This functionality can be applied for binning discrete
values, such as counts, as well as for discretization of continuous values,
for example, during generation of features used in machine learning
algorithms.
URL: http://github.com/collectivemedia/binr
URL: http://github.com/jabiru/binr
Depends:
R (>= 2.15),
License: Apache License (== 2.0)
Copyright: Copyright (C) Collective, Inc. | file inst/COPYRIGHTS
LazyData: true
RoxygenNote: 6.0.1
5 changes: 4 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Generated by roxygen2 (4.0.1): do not edit by hand
# Generated by roxygen2: do not edit by hand

S3method(bins,data.frame)
S3method(bins,default)
S3method(predict,binr)
export(bins)
export(bins.getvals)
export(bins.greedy)
Expand Down
14 changes: 13 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
Version 1.2
- Implementation of the predict() method by @smsaladi
- Handling of NAs by @smsalady
- Documentation updates
Version 1.1
- Fixed a bug in bins.getvals handling the case where number of bins is 1.
Example:
lst <- bins(c(rep(1,5), rep(0, 1000)), target.bins=3, minpts=10)
bins.getvals(lst)

- Updated maintainer email and copyrights

Version 1.0
First public release.
First public release.
42 changes: 21 additions & 21 deletions R/binr-package.R
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
#-------------------------------------------------------------------------------
#
# Package binr
# Package binr
#
# General description
#
# General description
#
# Sergei Izrailev, 2011-2014
#-------------------------------------------------------------------------------
# Copyright 2011-2014 Collective, Inc.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
#' Package \code{binr} (pronounced as "binner") provides algorithms for cutting
#' numerical values exhibiting a potentially highly skewed distribution into
#' evenly distributed groups (bins). This functionality can be applied for
#' binning discrete values, such as counts, as well as for discretization of
#' continuous values, for example, during generation of features used in machine
#' Package \code{binr} (pronounced as "binner") provides algorithms for cutting
#' numerical values exhibiting a potentially highly skewed distribution into
#' evenly distributed groups (bins). This functionality can be applied for
#' binning discrete values, such as counts, as well as for discretization of
#' continuous values, for example, during generation of features used in machine
#' learning algorithms.
#'
#'
#' @name binr
#' @aliases binr
#' @seealso \code{\link{bins}}, \code{\link{bins.quantiles}}, \code{\link{bins.optimize}}, \code{\link{bins.greedy}}
#' @seealso \code{\link{bins}}, \code{\link{bins.quantiles}}, \code{\link{bins.optimize}}, \code{\link{bins.greedy}}
#' @docType package
#' @title Cut Numeric Values Into Evenly Distributed Groups (bins).
#' @title Cut Numeric Values Into Evenly Distributed Groups (bins).
#' @author Sergei Izrailev
#' @section Maintainer: Sergei Izrailev
#' @section Copyright: Copyright (C) Collective, Inc.
#' @section License: Apache License, Version 2.0,
#' @section Maintainer: Sergei Izrailev
#' @section Copyright: Copyright (C) Collective, Inc.; with portions Copyright (C) Jabiru Ventures LLC
#' @section License: Apache License, Version 2.0,
#' available at http://www.apache.org/licenses/LICENSE-2.0
#' @section URL: http://github.com/collectivemedia/binr
#' @section Installation from github:
#' \code{devtools::install_github("collectivemedia/binr")}
#' @section URL: http://github.com/jabiru/binr
#' @section Installation from github:
#' \code{devtools::install_github("jabiru/binr")}
#' @keywords csv delimited file read.csv bigint 64-bit integer64
#'
#'
# The next and last line should be the word 'NULL'.
NULL
Loading