The weighted.mean command is equivalent to sum(y * f) / sum(f)
In the results, [1] indicates this result is the first item of a list - even though, in this case, the list only contains one item.
Notice that the weighted mean of prev (0.211) is quite different from the simple arithmetic mean of prev (0.538). This is because values in variable f varied quite considerably.