Exercise 4: Arrays and Matrices
Explore creating and populating three-dimensional arrays and matrices in R with character data. Learn to use the cat() function to print these data structures, reinforcing foundational skills in R's array and matrix manipulation.
We'll cover the following...
We'll cover the following...
Problem Statement
Create a x character array. Populate it with the first letters. Then print the array on the console.
Use
cat()to print the array.
Output
a b c d e f g h i
Test Yourself
Write your code in the given area. If you get stuck, you can look at the solution.