Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 Min Read
    data analytics for trademark registration
    Optimizing Trademark Registration with Data Analytics
    6 Min Read
    data analytics for finding zip codes
    Unlocking Zip Code Insights with Data Analytics
    6 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Object types in R: The fundamentals
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Uncategorized > Object types in R: The fundamentals
Uncategorized

Object types in R: The fundamentals

DavidMSmith
DavidMSmith
3 Min Read
SHARE

If you’re a self-taught R programmer, you’ve probably grappled with the different kinds of objects you can use in the language. When should you use a list instead of a vector? What’s the difference between a factor and character vector? These questions are easier to answer when you have some of the basics of R’s object types down pat, and Chris Bare lays out the fundamentals quite nicely in his blog post The R Type System. An excerpt:

Because the purpose of R is programming with data, it has some fairly sophisticated tools to represent and manipulate data. First off, the basic unit of data in R is the vector. Even a single integer is represented as a vector of length 1. All elements in an atomic vector are of the same type. The sizes of integers and doubles are implementation dependent. Generic vectors, or lists, hold elements of varying types and can be nested to create compound data structures, as in Lisp-like languages.

He goes on from with useful descriptions and examples of matrices, arrays, data frames, factors and more. Well worth checking out if…

More Read

My Opinion: NYT wants cyber security to be a divisive issue.
8 Rules for Managing Complexity
7 Lessons That Will Teach You All You Need To Know About Machine Learning
Digg Getting Faceted Search?
Hyperactive Data Quality

If you’re a self-taught R programmer, you’ve probably grappled with the different kinds of objects you can use in the language. When should you use a list instead of a vector? What’s the difference between a factor and character vector? These questions are easier to answer when you have some of the basics of R’s object types down pat, and Chris Bare lays out the fundamentals quite nicely in his blog post The R Type System. An excerpt:

Because the purpose of R is programming with data, it has some fairly sophisticated tools to represent and manipulate data. First off, the basic unit of data in R is the vector. Even a single integer is represented as a vector of length 1. All elements in an atomic vector are of the same type. The sizes of integers and doubles are implementation dependent. Generic vectors, or lists, hold elements of varying types and can be nested to create compound data structures, as in Lisp-like languages.

He goes on from with useful descriptions and examples of matrices, arrays, data frames, factors and more. Well worth checking out if you want to understand how R’s object types tick.

Link to original post

TAGGED:programming
Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

agenic ai
How Businesses Are Using AI to Make Smarter, Faster Decisions
Artificial Intelligence Exclusive
accountant using ai
AI Improves Integrity in Corporate Accounting
Exclusive
ai and law enforcement
Forensic AI Technology is Doing Wonders for Law Enforcement
Artificial Intelligence Exclusive
langgraph and genai
LangGraph Orchestrator Agents: Streamlining AI Workflow Automation
Artificial Intelligence Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

SAS ODS Report Writing Interface: A Quick Demo

5 Min Read
which JS framework is best
Big DataExclusiveProgramming

Which JS Framework Is Best For Big Data Development?

6 Min Read

Business Rules vs Programming

3 Min Read

Java Instead of Python

3 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data
AI chatbots
AI Chatbots Can Help Retailers Convert Live Broadcast Viewers into Sales!
Chatbots

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?