Here is a William Roberts age 2 in Llandegai on the 1881 census but his father is a quarryman. Of course we don't have your William's father's details from his marriage cert to check.
https://www.ancestry.co.uk/interacti...cklabel=Return
Llandegai was in Bangor reg district while Llanllyfni was in Carnarvon.