Given a variable aa in the workspace, some of its attributes are: > typeof(aa) [1] "list" > mode(aa) [1] "list" > length(aa) [1] 2
How do I retrieve the maximum indices, in this case 2,3,4? The variable itself is: > aa [[1]] [[1]][[1]] [[1]][[1]][[1]] [1] 37531.52 [[1]][[1]][[2]] [1] 62787.32 [[1]][[1]][[3]] [1] 5503.184 [[1]][[1]][[4]] [1] 33832.8 [[1]][[2]] [[1]][[2]][[1]] [1] 20469.6 [[1]][[2]][[2]] [1] 27057.27 [[1]][[2]][[3]] [1] 51160.25 [[1]][[2]][[4]] [1] 45165.24 [[1]][[3]] [[1]][[3]][[1]] [1] 957.932 [[1]][[3]][[2]] [1] 21902.94 [[1]][[3]][[3]] [1] 37531.52 [[1]][[3]][[4]] [1] 62787.32 [[2]] [[2]][[1]] [[2]][[1]][[1]] [1] 5503.184 [[2]][[1]][[2]] [1] 33832.8 [[2]][[1]][[3]] [1] 20469.6 [[2]][[1]][[4]] [1] 27057.27 [[2]][[2]] [[2]][[2]][[1]] [1] 51160.25 [[2]][[2]][[2]] [1] 45165.24 [[2]][[2]][[3]] [1] 957.932 [[2]][[2]][[4]] [1] 21902.94 [[2]][[3]] [[2]][[3]][[1]] [1] 37531.52 [[2]][[3]][[2]] [1] 62787.32 [[2]][[3]][[3]] [1] 5503.184 [[2]][[3]][[4]] [1] 33832.8 [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.