applies background colors to rows of a FlexTable
setRowsColors(object, i, colors)
a FlexTable
object
vector (integer index, row.names values or boolean vector) for rows selection.
background colors to apply (e.g. "#000000" or "black")
# NOT RUN {
#START_TAG_TEST
# Create a FlexTable object with first 10 lines of data.frame mtcars
# add row.names as first column
MyFTable = FlexTable( data = mtcars[1:10, ]
, add.rownames=TRUE
)
MyFTable = setRowsColors( MyFTable, i=1:4, colors = "red" )
#STOP_TAG_TEST
# }
Run the code above in your browser using DataLab