Hello,
I am still slightly confused about the difference in output between single square brackets [ ] and double brackets [[ ]] to extract an element or column from a vector or dataframe. See the example below where we get kind of the same results but with single square brackets I get a column of numbers and with [[ ]] we get a horizontal list of numbers...
Does the single square bracket access only one element? What if we use two indices and single square brackets? When using the double square brackets, I get the same results so I am confused...I know that one outputs a list while the other does not...
Thanks for any clarification...