+ 1
28th Mar 2022, 10:18 AM
Oma Falk
Oma Falk - avatar
3 Réponses
+ 5
# strsplit return as list which is sort of a dictionary in R (not a vector) # unlist tries to flatten it to a list print(length(unlist(strsplit(t," "))))
28th Mar 2022, 10:27 AM
Lisa
Lisa - avatar
+ 4
Lisa what is difference between seq, vector, list?
28th Mar 2022, 10:29 AM
Oma Falk
Oma Falk - avatar
+ 2
vector and list are data types. seq() creates a vector according to a given pattern (int) to illustrate, here some examples: https://code.sololearn.com/cHZdo066MbXL/?ref=app
28th Mar 2022, 10:54 AM
Lisa
Lisa - avatar