Download spotfire s+! - TIBCO Product Documentation

Transcript
Commands Window Basics
Here are two examples of incomplete expressions that cause Spotfire
S+ to respond with a continuation prompt:
> 3*
+ 21
[1] 63
> c(3,4,1,6
+ )
[1] 3 4 1 6
In the first example, Spotfire S+ determined that the expression was
not complete because the multiplication operator * must be followed
by a data object. In the second example, Spotfire S+ determined that
c(3,4,1,6 was not complete because a right parenthesis is needed.
In each of the above cases, the user completed the expression after
the continuation prompt (+) and then Spotfire S+ responded with the
result of the evaluation of the complete expression.
Interrupting
Evaluation of an
Expression
Sometimes you may want to stop the evaluation of an S-PLUS
expression. For example, you may suddenly realize you want to use a
different command, or the output display of data on the screen is
extremely long and you don’t want to look at all of it.
To interrupt Spotfire S+, simply press the ESC key.
Error Messages
Don’t be afraid of making mistakes when typing commands in the
Commands window; you will not break anything by making a
mistake. Usually you get some sort of error message, after which you
can try again.
Here is an example of a mistake made by typing an “improper”
expression:
> .5(2,4)
Problem: Invalid object supplied as function
Use traceback() to see the call stack
Dumped
In this example, we typed something that Spotfire S+ tried to
interpret as a function because of the parentheses. However, there is
no function named “.5.”
419