... continuing-Find out how to use the table function to know how many times each word has been drawn.
I created the 4words that are "hi" "hi" "hey" and "hi" but when I tried according to an example I saw on youtube it went wrong because there are no vectors.
creation:
pal<-c("oi","ola","hey","hi")
sample(pal,1000,replace=TRUE)
Execution:
head(pal)
levels(pal)
That's where I got the error because in the example I saw the guy was working with vectors