Message Boards Message Boards

0
|
2175 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Take elements in a list by some letters in the name

Posted 2 years ago
3 Replies

Something like:

Select[yourdata, First/*StringMatchQ[___~~”a”~~___~~”60s”~~__]]

Should work… I don’t have my laptop now with me…

POSTED BY: Sander Huisman

THIS WORK PERFECTLY! THANKS A LOT.

I would like also to take from this new list, the first parameter for each data set

this one for example

{"01-a-mas-480s.dat", {1.24}} {"02-a-mas-480s.dat", {0.77}} ect ect

how can I do it?

Use the [[]] notation to grab a part of an expression:

Yourvariable[[All,2]]

Or

Yourvariable[[All,2,1]]
POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract