Are these usages of the word 'in' correct(grammatically speaking)?
"In allowing them to get away unpunished, he tacitly approved of their behavior."
"In repeated sampling the long-run relative frequencies of the confidence intervals that contain the true value of the parameter will approach the confidence level."
I looked at the various definitions of the "in" at Dictionary.com but I didn't find one that seemed to justify this usage. I still find it used in this fashion however.