Re: [R] row, col function but for a list (probably very easy question, cannot seem to find it though)

2012-03-27 Thread MBoersma
Thanks guys for all the replies. "It is an urban myth that using 'apply' functions will deliver better performance than 'for' loops. It may even worsen performance or create obstacles when it is improperly used with dataframes. Most of the benefits come from improving readability and main

[R] row, col function but for a list (probably very easy question, cannot seem to find it though)

2012-03-25 Thread MBoersma
Hi guys, I'm quite new to R but quite enthousiastic. I'm trying to rewrite a bit of code in order to make it faster, so instead of nesting for loops I'm trying some apply functions. Since it's a combination of lists of matrices and other matrices, I would like to use lapply() on the list and still