QScript LocalFileItem

From Q
Jump to navigation Jump to search

LocalFileItem

A file that can be used as a source of data in R code.

To create a data file item, use appendLocalFile() in the ReportGroup object you want to append the file to in your report.

deleteItem()

Deletes a table, plot or sub-group.

equals()

Whether two objects are the same.
Returns:true or false
Example:
data_file.getQuestionByName('Q2').equals(data_file.questions()[0])

group

Get the ReportGroup object that contains this table/plot/group.

name

Get/set the table/plot/group's name.

type

Returns "Local file".