I'd suggest that you fly .. Riga is a long way from Frankfurt through several countries and I'd doubt that there is a direct train .. and I think that 2 days on a train would be a waste ... then thats only my opinion.