Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
admit gre gpa rank_2 rank_3 rank_4
0 380 3.61 0 1 0
1 660 3.67 0 1 0
1 800 4 0 0 0
1 640 3.19 0 0 1
0 520 2.93 0 0 1
1 760 3 1 0 0
1 560 2.98 0 0 0
0 400 3.08 1 0 0
1 540 3.39 0 1 0
#Logistic Regression in R(logistf package) results..
> str(iris_qua)
'data.frame': 100 obs. of 5 variables:
$ Sepal.Length: num 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ...
$ Sepal.Width : num 3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ...
$ Petal.Length: num 1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ...
$ Petal.Width : num 1.4 1.5 0.4 1.3 1.5 0.6 1.6 1 1.3 1.4 ...
$ Species : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1 1 1 ...
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 1.4 0
4.9 3 1.4 1.5 0
4.7 3.2 1.3 0.4 0
4.6 3.1 1.5 1.3 0
5 3.6 1.4 1.5 0
5.4 3.9 1.7 0.6 0
4.6 3.4 1.4 1.6 0
5 3.4 1.5 1 0
4.4 2.9 1.4 1.3 0
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 0
4.9 3 1.4 0.2 0
4.7 3.2 1.3 0.2 0
4.6 3.1 1.5 0.2 0
5 3.6 1.4 0.2 0
5.4 3.9 1.7 0.4 0
4.6 3.4 1.4 0.3 0
5 3.4 1.5 0.2 0
4.4 2.9 1.4 0.2 0