Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to perform list comprehension in R? #8

Open
1 task
cpkrehbiel opened this issue May 6, 2021 · 0 comments
Open
1 task

How to perform list comprehension in R? #8

cpkrehbiel opened this issue May 6, 2021 · 0 comments

Comments

@cpkrehbiel
Copy link
Contributor

Subject: List Comprehension in R

In Python, I can use the following code to perform list comprehension:

myList = ['wildcat', 'dog', 'catdog']
cats = [m for m in myList if 'cat' in m]

My question is:

  • How do I perform the same list comprehension in R?

@jules32 help me out?!

Tasks for Cole:

  • Learn R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant