The New York Times Co. convinced a federal court Nov. 8 that employee allegations of race and age discrimination can’t be certified as a class action.

There are too few employees in each of the proposed classes to justify class status, Judge P. Kevin Castel wrote for the U.S. District Court for the Southern District of New York.

The plaintiffs identified 10 employees for the race class and 24 for the age class. Neither meets the numerosity requirement of Federal Rule of Civil Procedure 23, the court said, striking the class allegations.

Claims for disability discrimination and the workers’ individual...