Fix examples: coredata vs. as.vector.