vector

0     0     Edited Sep 1, 2015
A vector is an expression that represents multiple values: one for each row in a dataset. A variable name is a vector because it represents multiple values: each row's value for that variable. Any operation or function that returns a vector is a vector.

Examples:
Q1
nullifeq(Q1, 99)
ifnull(Q1, 0)
Q1 + Q2 (this would return the value of Q1+Q2 for each row in a dataset).

The following are NOT vectors.
avg(Q1) is not a vector because it returns a single value. It is a scalar.
avg(Q1) + avg(Q2) is not a vector because it returns a single value. It is a scalar.

See Also:
scalar

Leave a Comment

Please sign in to leave a comment.