Hello I need help importing data into r markdown. Thank you!!!

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section: Chapter Questions
Problem 6SGR
icon
Related questions
Topic Video
Question

Hello I need help importing data into r markdown. Thank you!!!

Expert Solution
Step 1

To import the csv file, use the below code:

read.csv("file name.csv", header = TRUE, sep=",")

file name is the name of the file which is in working directory.

header = TRUE means the file contains the column names

sep="," means the file is comma separated. 

Now to import the txt file, use the below syntax:

read.table("file name.txt", header = TRUE, sep="\t")

file name is the name of the file which is in working directory.

header = TRUE means the file contains the column names

sep="\t" means the file is tab separated. 

 

steps

Step by step

Solved in 1 steps

Blurred answer
Knowledge Booster
Data Collection, Sampling Methods, and Bias
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt