In reactable, you can make edits to named columns as follows:
columns = list(
Species = colDef(minWidth = 140),
AnotherNamedColumn = colDef(align = "center")
)
The data I am using changes weekly, and so I can't use a named column. I need to subset from a df this:
columns = list(
df[1,2] = colDef(minWidth = 140),
df[1,3] = colDef(align = "center")
)
But reactable doesn't like this. Does anyone know how I can get this to work and actually get reactable to evaluate the subset code so I can 'point' to the correct column without naming it?