It's impossible to say, exactly, without knowing where you're coming from. The best I can do is tell you which subway lines stop near there.
The only subway lines that stop near there are the G (the light green line), the D and F (of the B-D-F-M, the orange line) and the N and R (of the N-R-Q-W, the yellow line).
The closest station is the 4th Avenue-9th Street Station. The address 270 9th Street is actually near the intersection of 4th Avenue and 9th Street (it's between 4th and 5th Avenues but very close to 4th). So 4th Avenue-9th Street is the ideal station to get off at.
Note that this is actually 2 connected stations, the 4th Avenue Station on the G and F and the 9th Street Station on the D, N and R.
Also note that the D and N only stop at 4th Avenue-9th Street at night, and the R does NOT stop there late nights (11 PM to 5:30 AM). The only trains that stop there full-time are the G and F.
Ninth Street was created in 1999.
The duration of Ninth Street is 1.58 hours.
Ninth Street Opus was created in 2008.
Ninth Street - 1999 is rated/received certificates of: USA:R
Warren Street - IRT Ninth Avenue Line - ended in 1940.
Ninth Street - BMT Fourth Avenue Line - was created in 1915.
Barclay Street - IRT Ninth Avenue Line - ended in 1940.
Cortlandt Street - IRT Ninth Avenue Line - ended in 1940.
Desbrosses Street - IRT Ninth Avenue Line - ended in 1940.
1941 against the Brooklyn Dodgers.
A Rose on Ninth Street - 2013 was released on: USA: 1 May 2013 (Philadelphia, Pennsylvania)
The web address of the Historic Ninth Street Hill Association Inc is: www.ninthstreethill.org