Print command
Title
Question
When should print command be used for displaying output and when is it not required? In this video, the author is using print(matrixB) command to obtain matrix output in Console window.
However, in assignment solution, output is being obtained even without print command.
How is it so?
R Creating-Matrices-using-Data-Frames 06-07 min 40-50 sec
Answers:
Either method works fine. However, it is a good practice to use print for debugging.
Login to add comment