-2
...continue-Find out how to use the table function to know how many times each word was drawn.
I created the four words that are "hi" "hi" "hey" and "hi" but when I tried according to an example I saw on youtube went wrong because they are not vectors.
creation:
pal<-c("oi","ola","hey","hi")
sample(pal,1000,replace=TRUE)
execution:
head(pal)
levels(pal)
that’s where it went wrong because in the example I saw the guy was working with vectors
Post the code instead of an image. Helps test :)
– Cleber Griff