create_type_generator: create type generator

Description Usage Arguments Author(s) Examples

Description

create type generator

Usage

1
create_type_generator(type_tibble, type_col, pre_size)

Arguments

type_tibble

a tibble with type information (eg. exampledata R1234)

type_col

string for column with type information

pre_size

amount of letters e.g. charactes before typenumber

Author(s)

Juliane Watson <juliane.bonness@web.de>

Examples

1
2
3
4
5
6
7
8
features <- data.frame(x = sample(3433806:3581396, 100, replace = TRUE),
                   y = sample(5286004:5484972, 100, replace = TRUE),
                   type = paste0("B", c(rep(1, 5), rep(2,15), sample(11:19, 20, replace = TRUE), 
                   sample(111:119, 30, replace = TRUE), sample(1111:1115, 30, replace = TRUE)))
                   )
                   
create_type_generator(features, "type", 1)
 

CRC1266-A2/moin documentation built on May 7, 2019, 8:56 p.m.