Skip to contents

Left-joins the w, w_norm, and sigma columns from a precision_weights fit onto a user data frame (e.g. the original $samples) by a key.

Usage

join_weights(samples_df, object, by = "sampleid")

Arguments

samples_df

Data frame to receive the weights.

object

A precision_weights object.

by

Join key column name(s). Default "sampleid".

Value

samples_df with w, w_norm, sigma added.