Skip to content

remove rows of a matrix by part of its row name

2 messages · Rui Barradas, Ahmed Serag

#
Hello,

Please always cc the list.

As for the question, yes, it does. If you want to remove just the ones 
with exactly 73.1 use the pattern

grep("^73\\.1$", etc)

Explanation:

Beginning of string: ^
End of string: $
Escape special characters: \\ (needed because the period is a special 
character.)

Hope this helps,

Rui Barradas
On 5/22/2018 12:50 PM, Ahmed Serag wrote:
#
Thanks a lot. The code works great.

Regards

Ahmed

**********************

Ahmed Serag

Analytical Chemistry Department

Faculty of Pharmacy

Al-Azhar University

Cairo

Egypt