Create a new population by uploading data and a schema.
Usage
create_population(sess, data, name)
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
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.
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.
# NOT RUN { 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")
# }