Delete special character from a string value

Kaja

I have such a value:

" 0.67564;"

and I want to delete ; and only have the double value. how can I do it in r?

tonytonov
a <- " 0.67564;"
gsub(';', '', a)
[1] " 0.67564"

To get a numeric representation:

as.numeric(gsub(';', '', a))
[1] 0.67564

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Get value from a string before and after a special character - Jquery

From Dev

Remove � Special Character from String

From Dev

Removing special character from a string

From Dev

Convert string from special character

From Dev

Remove � Special Character from String

From Dev

Javascript substring character from string with special character '/'

From Dev

How to delete character from a string?

From Dev

Delete character from string in Prolog

From Dev

php replace special character from the variable value

From Dev

Python / Remove special character from string

From Dev

remove all special character from string java

From Dev

Replace the special character and space from the string in javascript

From Dev

how to remove first special character from string

From Dev

remove all special character from string java

From Dev

Remove special character tag from my string

From Dev

Delete the content of a string between a word and special character in java

From Dev

Delete "very" special characters from string

From Dev

Delete "very" special characters from string

From Dev

How can I delete a special character from an array PHP?

From Dev

Get a character from a string value?

From Dev

Split string on special character

From Dev

Replace special character in string

From Dev

delete specific character from a string in js

From Dev

python string, delete character, count from right

From Dev

Delete one character at a time from an HTML string

From Dev

delete directory with special character in filename

From Dev

How to remove the html special character in value fetched from table?

From Java

how to remove special character from the beginning and end of a string in c

From Java

TCL Regular expression to trim the string from specific special character

Related Related

  1. 1

    Get value from a string before and after a special character - Jquery

  2. 2

    Remove � Special Character from String

  3. 3

    Removing special character from a string

  4. 4

    Convert string from special character

  5. 5

    Remove � Special Character from String

  6. 6

    Javascript substring character from string with special character '/'

  7. 7

    How to delete character from a string?

  8. 8

    Delete character from string in Prolog

  9. 9

    php replace special character from the variable value

  10. 10

    Python / Remove special character from string

  11. 11

    remove all special character from string java

  12. 12

    Replace the special character and space from the string in javascript

  13. 13

    how to remove first special character from string

  14. 14

    remove all special character from string java

  15. 15

    Remove special character tag from my string

  16. 16

    Delete the content of a string between a word and special character in java

  17. 17

    Delete "very" special characters from string

  18. 18

    Delete "very" special characters from string

  19. 19

    How can I delete a special character from an array PHP?

  20. 20

    Get a character from a string value?

  21. 21

    Split string on special character

  22. 22

    Replace special character in string

  23. 23

    delete specific character from a string in js

  24. 24

    python string, delete character, count from right

  25. 25

    Delete one character at a time from an HTML string

  26. 26

    delete directory with special character in filename

  27. 27

    How to remove the html special character in value fetched from table?

  28. 28

    how to remove special character from the beginning and end of a string in c

  29. 29

    TCL Regular expression to trim the string from specific special character

HotTag

Archive