KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a list containing 98 items. But each item contains 0, 1, 2, 3, 4 or 5 character strings. I know how to get the length of the list and in fact someone has asked the question before and got voted down for presumably asking such an easy question. But I want a vector that is 98 elements long with each element being an integer from 0 to 5 telling me how many character strings there are in each list item. I was expecting the following to work but it did not. lapply(name.of.list,length()) From my question you will see that I do not really know the nomeclature of lists and items. Feel free to straighten me out.
Tags (comma-separated)
Save Edits
Cancel