Quick question. What is the difference between a command and a function? And more to the point when both a command and a function exist to do the same thing, e.g. pca, which should one use. I think I have read in other posts that commands are being slowly depreciated in favor of function, but I am not sure if that is true.

 

Thanks,

 

Logan