I am a beginner in R, so I am sorry if the question was asked here before, however I did not found something similar:
What I needed is just to return the length of a vector (I have two vectors of the length 5 and 6 in the environment) from a command, conjoint with ls:
for (i in ls()) {print (length(noquote(i)))}
However, for both vectors this returns 1.
Thanks for a prompt.