make_newdata.ped: Construct a data frame suitable for prediction

Description Usage Arguments Details

Description

Given a data set, returns a data frame type object that can be used as newdata argument in a call to predict and similar functions.

Usage

1
2
## S3 method for class 'ped'
make_newdata(x, ..., expand = NULL, length.out = 50L)

Arguments

x

A data frame (or object that inherits from data.frame).

...

Further specifications of variables that should be set to a specific value.

expand

A character vector of column names in ped.

length.out

desired length of the sequence. A non-negative number, which for seq and seq.int will be rounded up if fractional.

Details

Extracts information from ped, using sample_info. If variables are specified with specific values in ..., the values in from sample_info will be overwritten. If variables are provided in expand, these will be expanded from min to max using in length.out equidistant steps.


adibender/pam documentation built on May 10, 2019, 5:54 a.m.