Comments (3)
- Regarding the quotations: Could you please show me the error message?
- 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.
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:
- Regarding the quotations: Could you please show me the error
message?- 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.
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)
- summary.stats.default is unused HOT 1
- Fails to import variable with duplicate labels HOT 13
- Measure info and Custom Attributes HOT 2
- Probable issue with record length HOT 16
- Saving files to XLSX HOT 2
- Exhibit odds ration in the regression estimates table [question] HOT 2
- library(memisc) causes functions to print NAMESPACE cache information HOT 9
- Issue with new version of spss.system.file HOT 9
- Error when generating codebook HOT 8
- write_html error HOT 1
- as.character(as.item(..., missing.values = 0, ...)) returns NA instead of a string HOT 5
- deduplicate_labels() is painfully slow on large datasets HOT 2
- mtable() summary.stats not showing R-squared HOT 1
- unable to read spss HOT 1
- `cases` function won't recognize conditions involving `is.na()` HOT 1
- spss.fixed.file() dropping final observation HOT 4
- CRAN Update Request HOT 1
- Can you send me /memisc.0.99.22? HOT 2
- Error when missing.values="" HOT 7
- GPL-3 licensed code mixed with GPL-2 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memisc.