.BG
.VE $Header: /usr3/s/current/s/.help/RCS/encode,v 1.2 83/12/30 19:28:06 rab Exp $
.FN encode
.TL
encode: Encode Text and Numeric Data
.CS
encode(arg1, arg2, ..., sep=)
.PP
.AG argi
vectors which may be either numeric, logical, or character.
If `argi' is of mode character, its elements are concatenated
with the next arguments as is.  Otherwise, the values are
encoded into character strings first.
Missing values (NAs) are allowed.
.AG sep=
the character string to be inserted between successive
arguments.  Can be "" for no space.  Default single space (" ").
.RT
character vector, with length equal to the maximum
of the lengths of the arguments.  The i-th element of the
result is the concatenation of the i-th elements of the
arguments (encoded if not originally character strings).  If
the length of the argument is less than the maximum,
elements of that argument are repeated cyclically.  In
particular, an argument can be a single element, to appear
in each element of the result.
.EX
encode("no.",1:10)    # gives "no. 1", "no. 2" ...

encode(state.name,"pop=",pop)   # "Alabama pop= 12.345"...
.KW text
.KW basic*
.KW manip
.WR
