Using R how can I print the position of NULL entries in a list.
My list looks like this
list
name1 character[1] xxxx
name2 character[1] xxxx
name3 NULL Pairlist of length 0
How can I simply just extract 3 as the positions of the list which are NULL.
I used list2 <- list[sapply(list, is.null)] to extract the whole entry of the NULL entries in the list, but I simply just want to print 3 for further work.