5. Write R code that will create a vector object named y that contains the values 1...., 10. Using the attr function cre

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

5. Write R code that will create a vector object named y that contains the values 1...., 10. Using the attr function cre

Post by answerhappygod »

5 Write R Code That Will Create A Vector Object Named Y That Contains The Values 1 10 Using The Attr Function Cre 1
5 Write R Code That Will Create A Vector Object Named Y That Contains The Values 1 10 Using The Attr Function Cre 1 (48.5 KiB) Viewed 81 times
5. Write R code that will create a vector object named y that contains the values 1...., 10. Using the attr function create two attributes for the vector. The first attribute should be called emotion and should be assigned the value "happy". The second attribute should be called outlook and should be assigned the value "good". Use the str function to demonstrate that the attributes were added correctly. Repeat this exercise using the attributes and structure functions instead of the attr function. Use the str function to demonstrate that the attributes were added correctly in each case. 6. What are the attributes of the vector x if it is created using the command x
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply