This is a follow-up question to a previous post.
I need to write an initialize() method for a S4 class (named Band) that expects a matrix and a value for k. It should be defined as a function with formal arguments (x, k), and should put the lower triangular elements of X into the object.
Any suggestions appreciated.