Get a vector of the names of an object named by the names themselves. This is useful with lapply when passing names of objects as it ensures that the output list is also named.
namedNames(g)
an objects on which we can call names()
vector with names of object