both are awesome DSLR, but each offer something a bit different :
the k-r is perfect for beginners, simple to use, but offer enough to progress a lot in all aspect of photography.
the K-5 target more the advanced photog or those you need a resistant body to mud, weather, humidity.
The price is not the same too.
As i said both are great, but you need to determine you need, and explain us if you have any kind of background in photo (either SLR, point and shoot, bridge, etc ...)
And BTW, change the title of the thread in something like "K-r or K5, help me choose". It's more catchy