Page 2 of 2

Re: how to display dataframe data in columns?

Posted: Tue Feb 20, 2024 7:53 am
by lkchan
Thank you sir
sure, please feel free to add me in Slack group. Plan to develop other modules too.

PS: I am crying and touched because you solved the issue. Thank you so much.

Re: how to display dataframe data in columns?

Posted: Tue Feb 20, 2024 9:15 pm
by jonathon
no worries ikchan, you should have received a slack invitation.

cheers

Re: how to display dataframe data in columns?

Posted: Wed Feb 21, 2024 7:14 am
by lkchan
How do I name a row title?

Code: Select all

  table3 <- self$results$compTable
              for (rowNom in seq_along(colMeansFuzzyScale)) {

                values <- as.list(colMeansFuzzyScale[rowNom])
                table3$setRow(rowNo=1, values)
             }
I tried this but not sucess.

Code: Select all

table1 <- self$results$scoreTable
              for (rowNom in seq_len(nrow(df_combined))) {
                if (rowNom > table1$rowCount)
                  break()
                values <- as.list(df_combined[rowNom,])
                table1$setRow(rowNo = rowNom, values = list(
                  var = rowNom, 
                  values))
              }
           table1$setRow(rowKey=21, var="Item rank")

Re: how to display dataframe data in columns?

Posted: Thu Feb 22, 2024 2:09 am
by jonathon
$setRow() takes a named list of values

table1$setRow(rowKey=21, list(var="Item rank"))

jonathon