Giter Site home page Giter Site logo

Multiple quotes and escape issues about memisc HOT 3 CLOSED

melff avatar melff commented on June 20, 2024
Multiple quotes and escape issues

from memisc.

Comments (3)

melff avatar melff commented on June 20, 2024
  1. Regarding the quotations: Could you please show me the error message?
  2. For the bulk changes try something like:
ds <- within(ds,{
   foreach(v=as.symbols(vector.with.varnames),{
      description(v) <- gsub("\'","*",description(v))
   })
})

foreach is defined in memisc, in particular for the purpose of enabling bulk replacements.

from memisc.

jciconsult avatar jciconsult commented on June 20, 2024

My apologies for not getting back sooner but I was travelling to a
conference. The message is missing quote. I include a zip file with 3
runs and 3 variants of the variable and label files. The edited version in
which the repeated single quote is replaced with ** works nicely.
Replacing the repeated single quotes with backslash quote does not work and
the basic files from Statistics Canada do not work. I can send you a
private share to a zip of the whole dataset if you wish.

Your package is most productive. I am working on a brief note on drug
insurance coverage in my province. I am always working with weighted
surveys. It would be nice to have a weighted code book option in memisc.

On Tue, Aug 16, 2016 at 5:58 AM, Martin Elff [email protected]
wrote:

  1. Regarding the quotations: Could you please show me the error
    message?
  2. For the bulk changes try something like:

ds <- within(ds,{
foreach(v=as.symbols(vector.with.varnames),{
description(v) <- gsub("'","*",description(v))
})
})

foreach is defined in memisc, in particular for the purpose of enabling
bulk replacements.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#14 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AUAF-rW0YzHHmwx_Y5rtP-p3Uiy9Y7v0ks5qgYnRgaJpZM4JiOrX
.

Paul M. Jacobson
Jacobson Consulting Inc.
80 Front Street East, Suite 720
Toronto, Ontario M5E 1T4
Voice: +1(416)868-1141
Email: [email protected]
President CABE 2015-17

from memisc.

melff avatar melff commented on June 20, 2024

Sorry for not coming back on this for a long while - teaching had started in September and ended just these weeks. I am wondering what the original problems with the quotes in labels is, because I have not been able to figure it out from your previous messages. The basic infrastructure does not seem to have problems with quotation marks as in:

a <- as.item(1:6)
description(a) <- "This is a test with 'quotes' (')"
labels(a) <- c("More quotation mark:' and \" "=1)
codebook(a)
====================================================================================================

   a 'This is a test with 'quotes' (')'

----------------------------------------------------------------------------------------------------

   Storage mode: integer
   Measurement: interval

                        Values and labels    N    Percent 
                                                          
       1   'More quotation mark:' and " '    1   16.7 16.7
           (unlab.vld.)                      5   83.3 83.3
                                                          
            Min:   1.000                                  
            Max:   6.000                                  
           Mean:   3.500                                  
       Std.Dev.:   1.708                                  
       Skewness:   0.000                                  
       Kurtosis:  -1.269                                  

from memisc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.