Is it possible to find the length of a variable in a dataset ? My dataset name is 'usairports' and I want to find the length of the 'ownership' variable.
length(usairports("ownership")
I tried this but it gave me the wrong output. Thank you!
CodePudding user response:
Please try
length(usairports$ownership)
or
length(usairports[['ownership']])