Copy/Paste - Vectors c(), scan(), length() ... ?

Is it possible making a copy + paste numbers and convert them in a vector? i.e. If I have copied a list from OfficeCalc, it appears like this in R when I paste them:
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
809
810
811
813
814
How would I put them like this c(764, 765, ...) in order to execute "length()" to count how many numbers I have. I guess you couldn't count how many numbers you would have if it were a consecutive list, because you can notice some of them are not one behind the other.

You can use the datapasta add-in, which includes options to paste as vectors. The add-in dropdown menu should be just below the toolbar menu at the top of RStudio.

I cannot remember whether datapasta is pre-installed with RStudio, so if it isn't you'll have to install it:
RStudio User Guide - RStudio Addins (posit.co)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.