I would like to save the values od a column as vectors in the following format:
code_cds = c("CA101","CA102","US103","US104")
I have a huge list of codes that I want to apply and my current function takes any values in the format c("value1", "value2", ...so on)
If I convert as follows, then it throws an error as it gets saved as list. If I use the column as is, then also it throws an error.
How can I save the values in format like c("value1", "value2", ...so on) which is the output format.
Also, how can we append another set of vectors in this set.
Examples: cds = c("CA105","CA106","US102","US101") to be added in code_cds which would then be code_cds = c("CA101","CA102","US103","US104", "CA105","CA106","US102","US101")
I am looking for output to be looking like in this format: c("CA101","CA102","US103","US104").
I have selected unique values from a column and I would like to store those values in this format which can be used anywhere in the code
That’s not a format, but an expression. The examples given by @FJCC and myself produce vectors that are identical to what you’d get entering the quoted line.