x <- as_draws_df(example_draws())
variables(x)
x <- rename_variables(x, mean = mu, sigma = tau)
variables(x)
x <- rename_variables(x, b = `theta[1]`) # or b = "theta[1]"
variables(x)
# rename all elements of 'theta' at once
x <- rename_variables(x, alpha = theta)
variables(x)
Run the code above in your browser using DataLab