Extracting names from a VarCorr object in lme4 and pasting it as column names
问题 Below I was wondering if there might be a way to extract the columns Name and Groups from vc1 and vc2 and respectively paste them as the column names for objects AA , BB . For example, for MODEL 1 (below), my expected output of AA will be: plate_(Intercept) #: Name & Groups column from `vc1` Standard deviation 1.54 Proportion of Variance 1.00 Cumulative Proportion 1.00 sample_(Intercept) #: Name & Groups column from `vc1` Standard deviation 3.513 Proportion of Variance 1.000 Cumulative