Re: [R] Fill an empty matrix with a function

2016-12-04 Thread David Winsemius
> On Dec 4, 2016, at 4:43 AM, Maximilian Eckert > wrote: > > Dear Sir oder Madam, > > > > I am currently writing my master thesis and I am struggling with R: > > > > I have created an empty matrix (M) which has months as row.names and stocks > as column.names and now I want to fill this m

[R] Fill an empty matrix with a function

2016-12-04 Thread Maximilian Eckert
Dear Sir oder Madam, I am currently writing my master thesis and I am struggling with R: I have created an empty matrix (M) which has months as row.names and stocks as column.names and now I want to fill this matrix with values from another matrix (T). The matrix T has also months as row.na