babipsylon
babipsylon

Reputation: 365

R: show result of calculation in command line

In matlab, if you leave the ; out, you get the result printed in the command center. For r, is there a little trick other than pasting the left hand side variable again in the command line?

Upvotes: 0

Views: 53

Answers (1)

Oliver
Oliver

Reputation: 8572

Enclose your calculation in a parenthesis

(a <- 1:3)
[1] 1 2 3

Upvotes: 3

Related Questions