add_codes_to_column()

add_codes_to_column()

add_codes_to_column(column, *codes)

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 “code1”, “code2”, and “code3” to the “test” column, and writes it back to the spreadsheet using setColumn.

require 'Datavyu_API.rb'
begin
   test = add_codes_to_column("test", "code1", "code2", "code3")
   setColumn("test", test)
end