Network Slice Selection Function In R