Re: [R] Finding strings in a dataset

2021-05-16 Thread Tuhin Chakraborty
ooking for an exact full match so it would be > >>> something like "theta" to be matched in full, or would you want to > match > >>> "the" and both "theta" and "lathe" would match? Or are you matching a > >>> pattern that is

Re: [R] Finding strings in a dataset

2021-05-16 Thread Rui Barradas
atterns, there is a family of functions using "grep" and so on. Good luck. -Original Message- From: R-help On Behalf Of Tuhin Chakraborty Sent: Saturday, May 15, 2021 1:08 PM To: r-help@r-project.org Subject: [R] Finding strings in a dataset Hi, How can I find the location of

Re: [R] Finding strings in a dataset

2021-05-16 Thread Rui Barradas
of functions using "grep" and so on. Good luck. -Original Message- From: R-help On Behalf Of Tuhin Chakraborty Sent: Saturday, May 15, 2021 1:08 PM To: r-help@r-project.org Subject: [R] Finding strings in a dataset Hi, How can I find the location of string data in my 2D dataset? spe

Re: [R] Finding strings in a dataset

2021-05-15 Thread Jeff Newmiller
tions of string functions including in packages like >> stringr/stringi that deal well with many things you might need. For >> matching >> patterns, there is a family of functions using "grep" and so on. >> >> Good luck. >> >> -Original Message-

Re: [R] Finding strings in a dataset

2021-05-15 Thread Tuhin Chakraborty
ep" and so on. > > Good luck. > > -Original Message- > From: R-help On Behalf Of Tuhin Chakraborty > Sent: Saturday, May 15, 2021 1:08 PM > To: r-help@r-project.org > Subject: [R] Finding strings in a dataset > > Hi, > How can I find th

Re: [R] Finding strings in a dataset

2021-05-15 Thread Avi Gross via R-help
hat deal well with many things you might need. For matching patterns, there is a family of functions using "grep" and so on. Good luck. -Original Message- From: R-help On Behalf Of Tuhin Chakraborty Sent: Saturday, May 15, 2021 1:08 PM To: r-help@r-project.org Subject: [R] Fi

Re: [R] Finding strings in a dataset

2021-05-15 Thread Rui Barradas
Hello, You should post a working example, we have no idea what your 2d data set is. A matrix? A data.frame? Something else? And the string you are looking for? Are you thinking of regular expressions (grep) or is it a simple equality '=='? Here is a reproducible example of the use of ?which

[R] Finding strings in a dataset

2021-05-15 Thread Tuhin Chakraborty
Hi, How can I find the location of string data in my 2D dataset? spec(Dataset) will reveal the columns that contain the strings. But can I know where exactly the string values are in the column? [[alternative HTML version deleted]] __ R-help@r-p