Suppose that you have an array consisting of several objects. This object is of the type string. Let this string be “DataFlair”.

DWQA QuestionsCategory: R LanguageSuppose that you have an array consisting of several objects. This object is of the type string. Let this string be “DataFlair”.
Editor Staff asked 9 months ago

Suppose that you have an array consisting of several objects. This object is of the type
string. Let this string be “DataFlair”. Now, you want to find the location of this string in the
character array ‘arr’. How will you carry this out?

2 Answers
Editor Staff answered 9 months ago

which( arr == “DataFlair”)
Learn everything about R arrays in detail

Editor Staff answered 9 months ago

which( arr == “DataFlair”)
Learn everything about R arrays in detail