r produce 10 alphabet
- Load the R environment by opening R or RStudio.
- Create a new script or open an existing one.
- Use the "letters" function to generate all the lowercase letters of the alphabet.
- Assign the result to a variable, for example, "alphabets."
- Print the content of the variable "alphabets" to the console.
- Verify that the output contains all 26 lowercase letters of the English alphabet.
- Use the "substr" function to extract the first 10 letters from the "alphabets" variable.
- Store the extracted 10 letters in a new variable, for instance, "first_10_alphabets."
- Print the content of the variable "first_10_alphabets" to the console.
- Confirm that the output consists of the first 10 letters of the English alphabet.