ram2ffcode | R Documentation |
Function ram2ffcode
creates the internal factor codes used by ff to store factor levels. Function ram2ramcode
is a compatibility function used instead if RETURN_FF==FALSE
.
ram2ffcode(value, levels, vmode)
ram2ramcode(value, levels)
value |
factor or character vector of values |
levels |
character vector of factor levels |
vmode |
one of the integer vmodes in |
Factors stored in unsigned vmodes .vunsigned
have their first level represented as 0L instead of 1L.
A vector of integer values representing the correspnding factor levels.
Jens Oehlschlägel
factor
, levels.ff
, vmode
ram2ffcode(letters, letters, vmode="byte")
ram2ffcode(letters, letters, vmode="ubyte")
ram2ffcode(letters, letters, vmode="nibble")
message('note that ram2ffcode() does NOT warn that vmode="nibble" cannot store 26 levels')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.