0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Rを学びたい(CSVファイルの読み込み) Step1

Posted at

はじめに

Rを学習したいので、段階的に学んでいこうと思います。
まずはCSVファイルの読み込みから開始していきます。

ソースコード

csv_include.r
# CSVファイルを読み込む
data <- read.csv("sample_data.csv")

# データの確認
print("CSVファイルの内容:")
print(data)
sample_data.csv
Name,Age,Score
Alice,25,90
Bob,30,85
Charlie,35,88
David,40,92
Eva,45,95

実行結果

> print(data)
     Name Age Score
1   Alice  25    90
2     Bob  30    85
3 Charlie  35    88
4   David  40    92
5     Eva  45    95
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?