CPRyan / cellclockr

Streamline the analysis of associations between epigenetic clocks and immune cell composition across various exposures and contexts
1 stars 0 forks source link

calculate_r2_w_age #4

Closed CPRyan closed 3 hours ago

CPRyan commented 4 hours ago

If I include more than 1 variable in 'control_covariates' I get this error.

Error in control_covariates != 1 && !all(control_covariates %in% colnames(data)) : 'length = 3' in coercion to 'logical(1)'

I checked and the variables are absolutely in the dataframe.

image

will-marella commented 3 hours ago

Fixed the erroneous error-checking in calculate_r2_w_age_helper.R. Thank you!