oodlescoop logo oodlescoop
  • Explore
    • Books
    • Movies
    • Quotes
  • Discover
    • Categories
    • Trending Now
    • Most Popular
  • Login Icon Login
  • Sign Up
  1. Home
  2. Programs
  3. R Programming
  4. R Program to print matrix on the console

R Program to print matrix on the console

Chaitra 05/07/2026 12:02:59 Updated 05/07/2026 12:02:59

Program

A = matrix (c(2 , 4, 3, 1, 5, 7), nrow =2, ncol =3, byrow = TRUE)
print(A)

Output

[,1] [,2] [,3]
[1,]    2    4    3
[2,]    1    5    7
Tags: R Programming Matrix in R R Tutorials R Console Output Learn R R for Beginners Programming in R Matrix Operations Coding Examples R Basics.
Previous
R Program to find the sum mean product of two vectors
Next
R Program to find modulus of two numbers
Explore More Topics
Geography View All
Country
Programs View All
ADA Programming ADA Programming C Programming C Programming C# Programming C# Programming C++ Programming C++ Programming F# Programming F# Programming GO Lang GO Lang Haskell Haskell Java Java JavaScript JavaScript Julia Julia Kotlin Kotlin Lua Programming Lua Programming PHP PHP Python Python R Programming R Programming Ruby Ruby Rust Rust Shell Script Shell Script Swift Programming Swift Programming
Recipes View All
Appetizer Appetizer Beverage Breakfast Breakfast Chutney Chutney Curry Curry Desserts Desserts Dips Dosa Dry Mix Gravy Idly Ingredient Jam Jam Jelly Jelly Khichdi Main Course Main Course Mouth Freshener Pickle Pickle Raita Salad Salad Sauce Sauce Side Dish Side Dish Snack Snack Soup Soup Sweets Sweets
Spiritual View All
Ashtottara Shatanamavali Ashtottara Shatanamavali
Stories View All
Akbar Birbal Hitopadesha Hitopadesha Panchatantra Panchatantra Tenali Ramakrishna Vikram Betal
Travel View All
Temple Temple
Tutorials View All
ADA Programming ADA Programming C Programming C Programming C# Programming C# Programming C++ Programming C++ Programming Chemistry Computer Basics F# Programming F# Programming GO Lang GO Lang Haskell Haskell Java Java JavaScript JavaScript Julia Julia Kotlin Kotlin Logical Reasoning Logical Reasoning Lua Programming Lua Programming PHP PHP Python Python R Programming R Programming Reading Comprehension Reading Comprehension Ruby Ruby Rust Rust Shell Script Shell Script Swift Programming Swift Programming
Related Content
Share
  • Share on Facebook
  • Share on Twitter X
  • Share on LinkedIn
  • Share on Pinterest
  • Share on WhatsApp
  • Share on Reddit
  • Share via Email

Sponsored

More from this Section

  • R Program to print Hello World on Console
  • R Program to generate random numbers using runif
  • R Program to find modulus of two numbers
  • R Program to multiply two numbers
  • R Program to divide two numbers

You Might Like

  • Garlic Tamarind Chutney
  • ADA Program to find perimeter of rectangle
  • C Program to print Half Right Diamond in a star pattern
  • Java Program to find fibonacci series of a number
  • Passage 233
  • C++ Program to demonstrate the use of address and value operator
  • Sri Harihara Ashtottara Shatanamavali Tamil
  • Algeria
  • C Program to find positive negative or zero using Conditional Operator
  • Cocos (Keeling) Islands
Share
  • Share on Facebook
  • Share on Twitter X
  • Share on LinkedIn
  • Share on Pinterest
  • Share on WhatsApp
  • Share on Reddit
  • Share via Email

Sponsored

More from this Section

  • R Program to print Hello World on Console
  • R Program to generate random numbers using runif
  • R Program to find modulus of two numbers
  • R Program to multiply two numbers
  • R Program to divide two numbers

You Might Like

  • Garlic Tamarind Chutney
  • ADA Program to find perimeter of rectangle
  • C Program to print Half Right Diamond in a star pattern
  • Java Program to find fibonacci series of a number
  • Passage 233
  • C++ Program to demonstrate the use of address and value operator
  • Sri Harihara Ashtottara Shatanamavali Tamil
  • Algeria
  • C Program to find positive negative or zero using Conditional Operator
  • Cocos (Keeling) Islands
Quick Links
  • About Us
  • Disclaimer
  • Privacy Policy
  • Terms of Service
  • Contact Us
Connect With Us

Stay updated with our latest news and updates

Follow Us
Facebook X LinkedIn Instagram YouTube Google

oodlescoop logo oodlescoop

All Rights Reserved CredoKey SoftTech Pvt. Ltd.
©
Cookie Preferences
Essential Cookies (Always Active)

These cookies are necessary for the website to function properly.


Functionality Cookies

These cookies enable core functionality such as security, network management, and accessibility.


Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.


Marketing Cookies

These cookies are used to make advertising messages more relevant to you. They perform functions like preventing the same ad from continuously reappearing, ensuring that ads are properly displayed for advertisers, and in some cases selecting advertisements that are based on your interests.

This website uses cookies to ensure you get the best experience on our website.
By clicking "Accept" you agree we can store cookies on your device in accordance with our Privacy Policy