Hey im new to R and wondering how i can with currency() of the package formattable format only 1 column.
matrix <- currency(matrix) working
currency(matrix[,2]) working
BUT
matrix[,2] <- currency(matrix[,2])
OR
matrix[1,2] <- currency(matrix[1,2])
doesn't change anything in matrix
edit: My Problem in a nutshell
The issue is that
formattableadds some attributes andmatrixcannot have those attributes. An option is to convert todata.framedata