Description Usage Arguments Value
Given a data set and grouping variables, this function returns mean values
for numeric variables and modus for characters and factors. Usually
this function should not be called directly but will rather be called
as part of a call to make_newdata
.
1 2 3 4 5 6 7 8 9 10 | sample_info(x)
## S3 method for class 'data.frame'
sample_info(x)
## S3 method for class 'ped'
sample_info(x)
## S3 method for class 'fped'
sample_info(x)
|
x |
A data frame (or object that inherits from |
A data frame containing sample information (for each group).
If applied to an object of class ped
, the sample means of the
original data is returned.
Note: When applied to a ped
object, that doesn't contain covariates
(only interval information), returns data frame with 0 columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.