Using Apostrophes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11790 Score: 0
    Caitlin Ireland
    Participant

    Hello,

    I am trying to edit a formula for a new attribute, but the string that I need to check if my attribute is “equal” to contains an apostrophe. I put for example: `Education’=”Bachelor’s” and it will not pick up any entries that contain that phrase, even though that is exactly how my Education attribute is coded. Is there something else I need to do? I tried putting a backslash which works in other languages, but I cannot get CODAP to return anything related to any of my attribute entries with apostrophes. Thanks!

    #11795
    Bill Finzer
    Keymaster

    Hi Caitlin,

    I tried this out myself and it worked as one would hope. (See enclosed screen capture.)

    Could you perhaps give us a share-link to a document in which you experience the problem?

    Bill

    #11797
    Dan Damelin
    Keymaster

    It could be that the apostrophe in Caitlin’s doc, the apostrophe in the data set itself, is not an apostrophe, but rather a curly single quote mark.

    #11800
    Caitlin Ireland
    Participant

    Dan,

    I think that is the issue. Is there a way to write the other mark on my keyboard, or a way to transform all the entries to a regular apostrophe?

    #11803
    Dan Damelin
    Keymaster

    Try copying the text in the cell, then write the formula and paste in the text from the clipboard rather than writing it out yourself.

    You can also probably export the data as CSV and do a find and replace on that kind of an apostrophe (using the clipboard again to copy the apostrophe before engaging the find/replace) either in a spreadsheet program or even a simple text editor. Then reimport the csv into CODAP.

    #11804
    Caitlin Ireland
    Participant

    Thanks copying and pasting worked!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.