Let $f:\left[0, \infty \right]\ \to \mathbb{R}$ be a nonnegative function such that $\int_{0}^{\infty} f(x) \,dx <\infty$, that $f$ is Riemann integrable on any finite interval $\left[0,R\right]$ and that $\lim_{R\to\infty}\int_{0}^{R} f(x) \,dx $ exists and is finite.Prove that the limit $\lim_{R \to \infty}\frac{1}{R}\int_{0}^{R} xf(x) \,dx $ exists and determine its value.