The Namibian economy is closely linked to South Africa with the Namibian dollar pegged one-to-one to the South African rand .