str1 = "The quick brown fox jumps over the lazy dog."
print("Original vector(string)")
print(str1)
print("Unique elements of the said vector:")
print(unique(tolower(str1)))
nums = c(1, 2, 2, 3, 4, 4, 5, 6)
print("Original vector(number)")
print(nums)
print("Unique elements of the said vector:")
print(unique(nums))

     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

"Original vector(string)"
"The quick brown fox jumps over the lazy dog."
"Unique elements of the said vector:"
"the quick brown fox jumps over the lazy dog."
"Original vector(number)"
1 2 2 3 4 4 5 6
"Unique elements of the said vector:"
1 2 3 4 5 6