Evaluate a basis function on pooled data and extract attributes
evaluate_basis_term(term, data)List with components:
result: The evaluated matrix
attrs: Named list of reproducible attributes
ncol: Number of columns
fn_name: The function name
var_name: The primary variable name
Character string like "ns(age, df=3)"
Ungrouped data frame