Find the median of each element in vectors in a list in R : I have a list with 30 vectors of lentgh 25:

I would like to find the median of the first element of my 30 vectors, then the median of the second element up to the 25th

I would like it to return a vector with the 25 values

I tried with lapply but did not succed