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
sample_info(x) # S3 method for data.frame sample_info(x) # S3 method for ped sample_info(x) # S3 method for fped sample_info(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.