add the mean sample size for missing SNP sample sizes
Usage
replace_na_with_mean(data, grouping_column, column_name)
Arguments
- data
Data frame containing SNP data.
- grouping_column
Column to group by.
- column_name
Name of the column with missing values.
Value
Data frame with missing values replaced by mean.