How can I apply frequency weights (like SPSS) in R ?

See the FAQ: How to do a minimal reproducible example reprex for beginners. Relatively few members here use SPSS so the question is obscure. Some representative data with the function to be applied and the identification of the weights variables will help us to help you find the right argument or an alternative function with weightings.