This function requires the bigdata library section to be loaded.
bd.string.column.width(x, columns=NULL)
bdFrame
.
NULL
, this specifies all of the data set columns.
x
is not a
bdFrame
.
Each
bdFrame
string column is created with a set maximum string width.
Attempting to store a longer string within such a column will generate a warning,
and truncate the string.
New data columns can be created with a specified string column width
by specifying the
string.column.width
argument
to
bd.create.columns
.
The default string width for newly-created columns is determined
by the
"string.column.width"
option to
bd.options
.
## Get maximum string width for character columns. Note this is the ## maximum number of characters possible, not the maximum present. df <- as.bdFrame(state.x77) df <- bd.create.columns(df, "'Population: ' + asString(Population) + ', Income: ' + asString(Income) + ', Area: ' + asString(Area)", name="Message", type="character", string.column.width=60) bd.string.column.width(df, "Message") table(nchar(df$Message))