create_population: Create a new population

Description Usage Arguments Details Value See Also Examples

View source: R/create_population.R

Description

Create a new population by uploading data and a schema.

Usage

1

Arguments

sess

an edp_session from edp_session(...)

data

a data frame containing the data to build models from

name

a length-one character naming the population

Details

This function derives a population schema from data, uploads the data and schema, and creates a new remote population object. You can optionally use functions like stat_type<- and display_name<- on columns of the data frame before calling create_population if you want to give it hints about what the schema should be.

Value

A new EDP population object. If you print it or cast it to character, you can get an id that will let you get the object back later with population.

See Also

edp_session, population, delete_population, stat_type, display_name, identifying

Examples

1
2
3
4
  d <- data.frame(x = c(1, 2, 3, 4, 5))
  display_name(d$x) <- "X!"
  stat_type(d$x) <- "realMultiplicative"
  ## Not run: pop <- create_population(sess, d, "my population")

edpclient documentation built on May 2, 2019, 2:01 p.m.