Error message in R when attempting to retrieve results of matchit [closed]

I am using the R package MatchIt for propensity score matching. I was able to match my treatment and control groups by using the following 2 lines of code:

m.out = matchit (Group ~ Gender + Ethnicity + SES, data = mydata, method = "nearest", ratio =1)

summary (m.out)

I want to access my matched data so I can analyze it in excel. But when I use the following code I get an error message:

Outdata <- match.data (m.out)

I get the following error message:

Error: could not find function "match.data"

Thank you, NJ

closed as off-topic by Sycorax, Tim♦, Xi'an, whuber♦Feb 24 '16 at 21:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – Sycorax, Tim, Xi'an, whuber
If this question can be reworded to fit the rules in the help center, please edit the question.

library(MatchIt)