Question: Conceptual question on ditto operator, labels, and unapply, with examples.

Question on the ditto operator, labels, and unapply, using three examples.

 

Example 1:

The ditto operator produces no output. Why is that? I presumed that the ditto operator is equivalent to copying pasting the last output.

 

Example 2:

Here the label approach seems to work, but in example three, both the ditto and label approach fails.

 

Example 3:

Someone earlier said that I should use unapply.

Why isn't    " v := x->% " equivalent to "v:=unapply(%,x)"

And why does the label approach fail in the vector calculus example.

Please Wait...