string matrices

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

string matrices

trece por ciento
Is it possible to manage string matrices or vectors, with more than 8
characters, within a matrix...end matrix?
Thanks in advance.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: string matrices

Richard Ristow
At 11:13 AM 10/18/2007, el13porciento wrote:

>Is it possible to manage string matrices or vectors, with more than 8
>characters, within a matrix...end matrix?

I'm afraid not. From the SPSS 14 Command Syntax Reference, article on
MATRIX:

Matrix variables can contain short [i.e., 8 character or less] string
data. Support for string variables is limited, however.
* MATRIX will attempt to carry out calculations with string variables
if you so request. The results will not be meaningful.
* You must specify a format (such as A8) when you display a matrix that
contains string data.

And you'll see there are no string-manipulation functions in MATRIX.
Strings are useful mainly for labeling output; they can be very handy
for that.

All that said, what do you want to do? Whatever you want to do with
your strings, there's probably another way to do it.

-Good luck,
  Richard Ristow

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD