Wheel swaps can get complicated. There are a number of factors you need to consider, and much will depend on how handy you are with making brackets and spacers. A friend with a lathe is a good friend to have.
Axle size - if different, this can be remedied by changing bearings. Just call up a bearing shop or do some Googling to find a bearing with the same Outer Diameter and Width as the stock bearings for the wheels you want to use but has the same Inner Diameter as your current wheels to match your axle. You'll want to use your current axle to mate properly with the forks / swingarm.
Hub width - You'll likely need to make new spacers to center the wheels in the forks / swingarm as the width of the hubs are likely different.
Brake location - Once you center the wheel, chances are high that the brake rotor isn't going to just mate nicely with your current calipers. You'll probably need to swap out calipers to use ones the right shape/size for your new wheels, which means making brackets to mount the new calipers to your old forks.
For these reasons, many people swap out entire front ends. It's ultimately easier to make a triple tree fit your frame than it is to deal with all the above.
Rear wheels add the extra complication of sprocket alignment. Does the sprocket on the new rear wheel line up with the countershaft sprocket on your engine? You can't just shove the rear wheel to one side to make the sprockets line up, as then your wheel is off center and that's not much fun.
Chances are high there is a good set of wheels out there for the YX600 - Google is your friend. Who knows - R6 wheels might bolt right on, but its unlikely. A nice R6 front end would look pretty cool though
