R dataframe from external data source to data grid

LabKey Support Forum (Inactive)
R dataframe from external data source to data grid chetc (LabKey Support)  2020-08-21 10:35
Status: Closed
 

Hello,

You can use (below) to get a grid like output. labkey.data would be the dataframe you pass in and be sure to include the comment, that allows labkey to display the tsv created. You can get more information on other kinds of outputs under the help tab in the report builder.

${tsvout:tsvfile}

write.table(labkey.data, file = "tsvfile", sep = "\t", qmethod = "double", col.names=NA)

Thanks,
Chet