##
data(tidobj)
# get weights for first row
first <- tidobj[1, ]
wts <- getwts(tidobj, first)
plot(wts, type = 'l')
if (FALSE) {
# get count of observations with grzero weights
sapply(1:nrow(tidobj), function(row) getwts(tidobj, tidobj[row, ],
ngrzero = TRUE))
}
Run the code above in your browser using DataLab