Suppose I have a vector that is nested in a dataframe one or two levels. Is there a quick and dirty way to access the last value, without using the length()
function? Something ala PERL's $#
special var?
So I would like something like:
dat$vec1$vec2[$#]
instead of
dat$vec1$vec2[length(dat$vec1$vec2)]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…