[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
2026-02-05
graded with feedback
almost done :)
default in R is to fill columns first
in python rows are filled first! order="F" changes that:
The 18th element in a vector in R has index 18.
The 18th element in a vector in python has index 17 - same with columns! You need to keep that difference in mind
LLMs have a bad rep for creating meh text and fabulating on facts.
What they are (usually) great for, are translations from one programming language to another.
For extra credit:
Take your code from your preferred language, and let an LLM translate it for you into the other language. Provide the code and describe your experience.
We are starting on a new unit!!!
Before class:
Read Data Input and Exploratory Data Analysis