Applying per directory X-Frame-Options headers in Apache

Applying the following directive in Apache will prevent pages from being embedded in other sites as frames/iframes:
Header always append X-Frame-Options SAMEORIGIN

But what if you want to allow some pages to be embedded as frames/iframes? I was able to do this by unsetting the directive in a .htaccess file.