Hello,

I have an xts file with 6000 collumns and 2000 rows, containing daily max temperatures for 6000 different places and I try to calculate the percentage of days on each one when the temperature is above the 95th percentile.

My initial thought was to calculate the 95th quantile for each one of them however when I use the quantile function, it doesnt work for each collumn seperately. Moreover unfortunetely it doesnt provide me the percentage of days, only the numeric value

max79_84<-coredata(max_79_84)

max79_84<-as.numeric(max79_84])

tx5_79_84<-quantile(max79_84,0.95)

I'm really stuck at this point so any help or suggestion is higly appreciated