add_codes_to_column()

add_codes_to_column()

add_codes_to_column(column, *codes)

Alias(es): addCodesToColumn, add_args_to_var

Add new codes to a column.

Parameter

Type

Description

column

String or RColumn object

Name of the variable that you are adding arguments to.

*codes

List

List of arguments to add to column. Parameters with an * indicate lists.

Returns

Ruby representation of the column.

Example

The following example adds “condition_abc”, “response_xyz”, and “score_123” to the “test” column, and writes it back to the spreadsheet using set_column().

require 'Datavyu_API.rb'
begin
   test = add_codes_to_column("test", "condition_abc", "response_xyz", "score_123")
   setColumn(test)
end