Data Science & Statistics: Matrix recycling in R
👉🏻 Download Our Free Data Science Career Guide: https://bit.ly/3g8kIZt
👉🏻 FREE MONTH! Get full access to our newly redesigned platform and all our courses (18th October - 18th November): https://bit.ly/3kWG4wE
We know that in R vectors recycle. But do matrices? Yes, absolutely. This lesson explains how.
In the context of matrices, if you specify dimensions that can’t be filled up by your matrix, R will recycle the vector so your matrix is complete. For example, if I passed the vector from 1 to 10 in the matrix function, and made it explicit that I want my matrix to contain 4 rows and 4 columns, R will recognise that my vector is too short for the matrix, and it will repeat it until all 16 value spots hold a value. As you see, in this particular case, R also issues a warning that 10 is not a multiple of the number of rows, but that isn’t usually consequential. The moral of the story here is: be aware that recycling will happen, if necessary, in some matrix operations.
► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScience?sub_confirmation=1
► VISIT our website: https://bit.ly/365ds
🤝 Connect with us LinkedIn: https://www.linkedin.com/company/365datascience/
365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists.
We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online.
Check out our Data Science Career guides: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb
№DataScience #RProgramming #Statistics
Видео Data Science & Statistics: Matrix recycling in R канала 365 Data Science
👉🏻 FREE MONTH! Get full access to our newly redesigned platform and all our courses (18th October - 18th November): https://bit.ly/3kWG4wE
We know that in R vectors recycle. But do matrices? Yes, absolutely. This lesson explains how.
In the context of matrices, if you specify dimensions that can’t be filled up by your matrix, R will recycle the vector so your matrix is complete. For example, if I passed the vector from 1 to 10 in the matrix function, and made it explicit that I want my matrix to contain 4 rows and 4 columns, R will recognise that my vector is too short for the matrix, and it will repeat it until all 16 value spots hold a value. As you see, in this particular case, R also issues a warning that 10 is not a multiple of the number of rows, but that isn’t usually consequential. The moral of the story here is: be aware that recycling will happen, if necessary, in some matrix operations.
► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScience?sub_confirmation=1
► VISIT our website: https://bit.ly/365ds
🤝 Connect with us LinkedIn: https://www.linkedin.com/company/365datascience/
365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists.
We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online.
Check out our Data Science Career guides: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb
№DataScience #RProgramming #Statistics
Видео Data Science & Statistics: Matrix recycling in R канала 365 Data Science
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Recommender Systems in the Medical Industry with Alex | 365 Data Use CasesJoins in Tableau: Choose the correct join typeVLOOKUP and MATCH another useful functions combination [Advanced Excel]The ELIF keyword [Python Fundamentals]Data Science & Statistics: Creating a matrix in R FASTERData frames in R - Exporting data in RData Science & Statistics: Indexing an element from a matrixHow to make a data check in Tableau: A quick data check is better than no data check365 Data Science ReviewData Science and Machine Vision with Bernard Marr | 365 Data Use CasesData frames in R - Transforming data PART IIData Science & Statistics: Matrix operations in RWorking with Tuples in PythonRelational Database EssentialsPython Tutorial for Beginners: Introduction to Programming | Install Python and Jupyter NotebookData Science & Statistics: Matrix arithmetic in R365 Data Science Online ProgramData Science & Statistics: Creating a Matrix in RData frames in R - Getting a sense of your dataIntroducing 365 Card Collections: Celebrate the Pioneers of Science