Skip to content

Commit

Permalink
updated d2 script
Browse files Browse the repository at this point in the history
  • Loading branch information
january3 committed Sep 17, 2024
1 parent 3a18251 commit f443863
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Scripts/day2_20240917.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ d2 <- d[ , c("last_names", "names", "age")]
d$city <- NULL



# checking the type of your data
class(d)
class(1:10)
Expand All @@ -274,3 +273,15 @@ summary(d)
summary(d$age)
summary(d$names)
summary(person)

# Exercise 2.3

mat <- matrix(rnorm(15), nrow = 5)
mat
df <- as.data.frame(mat)
df
rownames(df) <- letters[1:5]
colnames(df) <- c("blah", "bleh", "bluh")
df$pstrem <- rep("A", 5)
?seq
df$sequence <- seq(0, 1, length.out = 5)

0 comments on commit f443863

Please sign in to comment.