# 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

library(MatchIt)