When he was growing up in Brooklyn, Harvey Frommer played third base on sandlot teams and often took the trolley to Ebbets Field to watch the Dodgers. He once met the team’s biggest star, Jackie Robinson, who in 1947 became baseball’s first African American player of the 20th century.

He may not have had the talent to make the Dodgers as a player, but Dr. Frommer went on to chronicle the team’s history, as well as the fortunes of other New York teams, in dozens of books, many of which were about baseball.

Like the Dodgers themselves, who left Brooklyn for Los Angeles after the 1957 season, Dr. Frommer moved away from his native borough. He eventually became an Ivy League professor, teaching courses on sports journalism and oral history at Dartmouth College.

He was 83 when he died Aug. 1 at his home in Lyme, N.H. The cause was lung cancer, said his son Frederic J. Frommer.

Something of an iconoclast, Dr. Frommer grew up as a fan of the St. Louis Cardinals, but in Brooklyn, no one — not even Cardinals fans — could escape the pull of the Dodgers during the “Boys of Summer” era of the 1940s and ’50s.

“I guess the biggest influence on me was Red Barber,” the Dodgers’ radio broadcaster, Dr. Frommer told the New York Times in 1980. “As a kid living in a fairly lousy neighborhood and listening to the radio on these kind of hot, steamy summer nights without air conditioning — to get this very articulate Southern voice describing the doings of the Dodgers and telling these wonderful stories — I think he got me interested in speech, in literature and also baseball.”

Dr. Frommer wrote several books about the Dodgers, including a 1984 biography of Robinson and another about how Brooklyn’s team president, Branch Rickey, engineered Robinson’s rise to the major leagues.

“Rickey and Robinson: The Men Who Broke Baseball’s Color Barrier” was praised in a 1982 review by Washington Post sportswriter William Gildea as “a vivid account of the two as principled, determined men — genuine American heroes.”

In 1980, Dr. Frommer published “New York City Baseball: The Last Golden Age, 1947-1957,” a history of the final decade in which the city had three teams: the Dodgers, the New York Giants and the New York Yankees.

During those years, New York teams won 17 of 22 major league pennants and nine of 11 World Series championships. In 1955, less than a week before Dr. Frommer’s 20th birthday, the Brooklyn Dodgers won their first and only World Series title, beating the Yankees.

“The victory of the Dodgers of Brooklyn over the Yankees of New York was the triumph of the underdog over the fat cat, the people over the corporation, Brooklyn over the rest of the world,” Dr. Frommer wrote in “New York City Baseball.” “In Flatbush, Bensonhurst, Bay Ridge, Greenpoint, the citizens of Brooklyn were triggered into wild tribal jubilation: bonfires in the streets, prideful speeches from the top of stoops. . . . Thousands were content just to gather on sidewalks and porches and bang spoons against pots and pans. It was the happiest time in the long history of Brooklyn.”

Harvey Frommer was born on Oct. 10, 1935, in Brooklyn. His father drove a taxicab, and his mother was a homemaker.

Dr. Frommer graduated in 1957 from New York University, then worked briefly as a sportswriter in Chicago. After Army service, he received a master’s degree in English from New York University in 1961.

He spent a decade as a high school English teacher in New York, then taught at the City University of New York for about 25 years. He received a doctorate in media and communications from NYU in 1974, writing his dissertation on the intersection of sports and television.

Dr. Frommer’s first book, a history of baseball, appeared in 1976. He quickly began publishing books — often several in a single year — on baseball, the Olympics and other sports. He was the co-author of autobiographies by baseball pitcher Nolan Ryan, basketball Hall of Famers Nancy Lieberman and Red Holzman, and football players Tony Dorsett and Don Strock.

Despite his Brooklyn upbringing, Dr. Frommer became perhaps the leading authority on the history of the Yankees, publishing “The New York Yankee Encyclopedia” (1997), “Five O’Clock Lightning,” about the 1927 New York Yankees (2007), “Remembering Yankee Stadium” (2008) and “The Ultimate Yankee Book” (2017).

At Dartmouth, where Dr. Frommer joined the faculty in 1996, he often taught graduate-level courses in oral history with his wife, Myrna Katz Frommer. They wrote several oral history books together, including “It Happened in Brooklyn” (1993), “Growing Up Jewish in America” (1995), “It Happened on Broadway” (1998) and “It Happened in Manhattan” (2001). Dr. Frommer also published several books with his son Frederic J. Frommer, a Washington-based author and sports publicist.

In addition to his wife, of Lyme, and son, of the District, Dr. Frommer’s survivors include two other children, Jennifer Frommer of New York and Ian Frommer of New London, Conn.; and six grandchildren.

Dr. Frommer wrote about the storied rivalry between the Yankees and Boston Red Sox and, in 2011, published a lavishly illustrated coffee table book about Boston’s Fenway Park, the oldest ballpark in the major leagues.

In an interview with Bloomberg News broadcaster Tom Keene in 2011, Dr. Frommer noted that Fenway seemed alive with the “ghosts of Ted Williams and Cy Young and Johnny Pesky, Bobby Doerr,” and other Red Sox legends. “All these people are still there. So I think it’s a place of mysticism, magic and memory.”

His exploration of the history of Fenway Park led to an unlikely conversion for a New Yorker who had spent so much of his life chronicling baseball in his hometown.

“I have a confession to make to you and to everybody else,” Dr. Frommer told Keene. “I was a New York Yankees fan until I wrote this book. I changed. People change religion. I have changed my rooting interest, and now I’m joined with you as part of Red Sox nation.”