CHICAGO — United Airlines is taking the troubled Boeing 787 out of its flying plans for the rest of this month.

The airline says it has replaced its six 787s with other planes through the end of February. The 787s were grounded by the government last month.

United Continental Holdings Inc. spokeswoman Megan McCarthy says the plane swaps include new flights from Houston to Lagos, Nigeria, which were supposed to switch to a 787 in late January. She says United still plans to start new flights from Denver to Tokyo’s Narita airport on March 31.

Japan’s All Nippon Airways has also removed 787s from its schedule through month’s end.

The National Transportation Safety Board says it is weeks away from knowing what caused a 787 battery to catch fire on Jan. 7.

United is the only U.S.-based carrier that had been flying the Dreamliner before the aircraft was grounded. The carrier’s inaugural commercial 787 flight was Nov. 4.