Hello,

I am trying to write a large if statement in R studio. I am trying to just get the basic statement to work, but i'm having trouble.

Currently, i have:

md$`"Type"`

<- if(md$`"Numbers"`

== 52123551110622) {"2X12_355_11X10"} else{NULL}

Which returns the error: Warning in if (md$`"Numbers"`

== 52123551110622) { : the condition has length > 1 and only the first element will be used

I have an entire column of numbers in the "Numbers" column that i will need to add to the if statement. So if the numbers match a certain number pattern, it will return the number formatting to the "type" column.