<- c(4.6, 5, 4.8, 5, 4.2)
scores <- c("I would watch it again", "Amazing!", "I liked it", "One of the best movies", "Fascinating plot") comments
My First Week with DSPG
During week one, I took a couple data camp courses to get more familiar with topics in R, Github, and web scraping in R.
Here is an example of what I did in the Intro to R course. In the code below, there are two vectors: scores and comments. The scores represent the ratings of different movies and comments are opinions of viewers.
I can get the mean of the scores vector by writing:
mean(scores)
[1] 4.72
Something that was very new to me in R was matrices. I learned how to create them and how to reference specific rows and columns.
# Vector with numerics from 1 up to 10
<- 1:10
my_vector
# Matrix with numerics from 1 up to 9
<- matrix(1:9, ncol = 3)
my_matrix
# First 10 elements of the built-in data frame mtcars
<- mtcars[1:10,]
my_df
# Construct list with these different elements:
<- list(my_vector,my_matrix,my_df) my_list
I plan to complete these courses: Intermediate R, Web Scraping in R, and AI Fundamentals.