With sub
you can search for a pattern and replace it (or remove it by replacing it with an empty string). The pattern in your example would be "[0-9]+g". This corresponds to any digit one or more times followed by the character g
.
productWords$Chip <- sub(pattern = "([0-9]+g)|[[:punct:]]", replacement = "", x = productWords$Chip)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…