Skip to main content
Saylor University
  • Courses & Programs
    All Categories
    Arts and Humanities
    Business Administration
    Computer Science
    English as a Second Language
    Professional Development
    Science and Mathematics
    Social Sciences
    Specialization Programs
    Degree Programs
  • Help
    Help Center & FAQ
    文A Translate
    Verify Certificate
  • More
You are currently using guest access
Log in
Saylor University
Courses & Programs Collapse Expand
All Categories
Arts and Humanities
Business Administration
Computer Science
English as a Second Language
Professional Development
Science and Mathematics
Social Sciences
Specialization Programs
Degree Programs
Help Collapse Expand
Help Center & FAQ
文A Translate
Verify Certificate
Expand all Collapse all

Blocks

Skip Table of contents

Table of contents

  • Entering Data
  • How to Manually Enter Raw Data in R?
    • Enter data as a vector
    • Enter data as a data frame
    • Enter data as a matrix
  1. Home
  2. PRDV420: Introduction to R Programming
  3. Unit 3: Data Import and Export
  4. 3.1: Data Input via Keyboard or Number Generation
  5. Entering Data

Entering Data

  • Book
  • Print book (Opens in new window)
  • Print this chapter (Opens in new window)
  • More
Completion requirements

It can be a good idea to put down a few values directly in your code to create an object to try things on. First, you can use this new "synthetic" dataset to write more code while waiting for the real data. Second, you can use this dataset to debug your code (find the source of an error and fix it). When you complete this section, you will know several ways of creating data objects manually.

Entering Data


Source: Datalab,

watch

Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Back to '3.1: Data Input via Keyboard or Number Generation'
You are currently using guest access (Log in)
Get the mobile app
Powered by Moodle

Privacy Policy Terms of Use

© Saylor University 2010-2026 except as otherwise noted. Excluding course final exams, content authored by Saylor University is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners and shared under various licenses. See detailed licensing information. Saylor University®, Saylor.org®, and Harnessing Technology to Make Education Free® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.

Facebook X Instagram LinkedIn YouTube