Richard Ray Roberts, 62, a retired education official and writer and editor with the U.S. Postal Service and the Navy Department, died at his home in Vienna on June 12 following a heart attack.

Dr. Roberts was born in Greentop, Mo., grew up in Kirksville, Mo., and graduated from Eastern Missouri State College. He moved to Washington in 1940 and went to work for the Bureau of the Census.

During World War II, he served in the Navy in the Pacific and remained in the reserves until 1959, when he retired with the rank of lieutenant commander.

After the war, Dr. Roberts returned here and went to work in the Post Office Department. He also earned master's and doctoral degrees in education from George Washington University.

In 1951, he transferred to the Navy Department as a writer of training manuals. He was the editor of the Naval Training Bulletin and became director of the Navy Education and Training Development Activity. In 1967, he joined the Postal Service and was a senior training officer there at the time of his retirement in 1973. He lived in Southampton, N.Y., from 1974 until moving to Vienna earlier this year.

Dr. Roberts wrote numerous articles for professional journals. In 1966, he received an award from the American Society for Training and Development, of which he was a member, for one that he published that year.

He also was a member of the Adult Education Association, the American Personnel and Guidance Association and Phi Delta Kappa, a professional education fraternity. He was an associate of the Naval Institute.

Dr. Roberts was a life-member of the U.S. Table Tennis Association and founded a table tennis chapter in Northern Virginia. He was coauthor, with Sherwood B. Goldstein, of a book, "Start Your 0wn Table Tennis League," which was published by the Table Tennis Association.

His first wife, the former Margaret Snow, died in January 1980.

Survivors include his wife, Margaret Herby (Peg) Roberts, whom he married in March, of Vienna; two children by his first marriage, Rosana L. Hart of Forestville, Calif., and Marcia C. Linebarger of Philadelphia; one stepson, Peter W. Herby of Newfane, Vt.; one sister, Alma F. Ullom of Fairfax; one brother, Henry A. Roberts Sr. of Anderson, S.C., and one grandson.