How would I access an xts column by name in a function? The code below returns NULL.
#m(list=ls())#dev.off(dev.list()["RStudioGD"])getSymbols("^GSPC",src="yahoo",from="2015-01-01",to = "2020-06-04")str(GSPC)frog<-function(ts,name) { ts$name}frog(GSPC,"GSPC.Close")