William F. Farmer Jr., 82, a retired legislative clerk with the secretary of the Senate’s office, died Dec. 31 at a hospice in Wilmington, N.C. He had dementia.

His wife, Esther W. Farmer, confirmed the death.

Mr. Farmer did accounting work in North Carolina before moving to the Washington area to join the secretary of the Senate’s office in 1964.

He was a legislative clerk from 1980 until his retirement in 1992. His duties included calling the roll on votes and quorum calls.

In 2007, he moved to Wilmington from Alexandria.

William Fulton Farmer Jr. was born in Mayfield, Ky., and raised in Frankfort, Ky. He served in the Marine Corps from 1948 to 1951, and he was a 1959 accounting graduate of the University of Kentucky.

A son, Steven C. Farmer, died in 1988.

Survivors include his wife of 54 years, Esther Warden Farmer of Wilmington; a son, David F. Farmer of Lilburn, Ga.; a half-brother, Nick Farmer of Washington; three half-sisters, Judy Farmer of Glenview, Ill., Ann F. Bryan of Centennial, Colo., and Barbara F. Roberts of Biloxi, Miss.; and a granddaughter.

— Adam Bernstein