Learn R Programming

onemap (version 2.1.1)

create_data_bins: New dataset based on bins

Description

Creates a new dataset based on onemap_bin object

Usage

create_data_bins(input.obj, bins)

Arguments

input.obj

an object of class onemap.

bins

an object of class onemap_bin.

Value

an object of class onemap.

Details

Given a onemap_bin object, creates a new data set where the redundant markers are collapsed into bins and represented by the marker with the lower amount of missing data among those on the bin.

See Also

find_bins

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
  load(url("https://github.com/mmollina/data/raw/master/fake_big_data_f2.RData"))
  fake.big.data.f2
  (bins <- find_bins(fake.big.data.f2, exact=FALSE))
  (new.data <- create_data_bins(fake.big.data.f2, bins))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab