The work done \(W\) against friction is given by the formula:
\[
W = F \times d
\]
Where:
- \(F\) is the frictional force,
- \(d\) is the displacement.
The frictional force \(F\) is given by the relation:
\[
F = \mu \times R
\]
Where:
- \(\mu\) is the coefficient of friction,
- \(R\) is the reaction force (which is equal to the weight of the body if it is moving horizontally on a flat surface).
Thus, the work done against friction is:
\[
W = \mu R \times d
\]
Hence, the work done is \(\mu R d\).