CellText.toString Method (R)
CellText.toString(object). This method is used to obtain a string representation of a CellText.String
or CellText.Number
object. Values obtained from this method
can be used in string expressions. You call this method on a CellText.String
or CellText.Number
object.
Example
table = spss.BasePivotTable("Table Title",
"OMS table subtype")
BasePivotTable.Append(table,Dimension.Place.row,"row dimension")
BasePivotTable.Append(table,Dimension.Place.column,"column dimension")
row_cat1 = spss.CellText.String("first row")
row_cat2 = spss.CellText.String("second row")
col_cat1 = spss.CellText.String("first column")
col_cat2 = spss.CellText.String("second column")
BasePivotTable.SetCategories(table,rowdim,list(row_cat1,row_cat2))
BasePivotTable.SetCategories(table,coldim,list(col_cat1,col_cat2))
BasePivotTable.SetCellValue(table,list(row_cat1,col_cat1),spss.CellText.String("abc"))
cellValue = CellText.toString(BasePivotTable.GetCellValue(table,list(row_cat1,col_cat1)))
BasePivotTable.SetCellValue(table,list(row_cat2,col_cat2),
spss.CellText.String(paste(cellValue,"d",sep="")))