Displaying 1 result from an estimated 1 matches for "listfunc".
2003 Feb 19
3
working with list
hi,
i have two questions:
(1) lookup: given a list of 'strings' in a list, i want to know the index
of a given string in the list. if the string is not in the list, the index
can be 0 or length()+1. for example, suppose i have
names <- c("dog", "cat", "pig", "fish");
then i want
lookup(names, "cat") to return 2 and
lookup(names,