Quantile calculation is different.

I would appriciate help for ecdf function

exam <- c(72,78,85,89,94,98)
I was asked to calculate the quantile for x=94 and it's 71.43%
ecdf(exam)(94) returned 83%
I found that type 6 is my desired type, however i dont know how to change the type for the ecdf

I found that type = 6 is good for me in quantile, but not for ecdf... any suggestions?
https://stackoverflow.com/questions/35927956/quantile-vs-ecdf-results#:~:text=1%20Answer&text=There%20are%20two%20points.,way%20quantile%20makes%20its%20calculations.&text=Second%2C%20since%20ecdf%20gives%20a,(see%20the%20second%20formula).

Seems like there's no easy solution but using the formula i learned in class? thats a bummer. no package?
Much appriciation