andrie / sss

R package to import files in the triple-s (Standard Survey Structure) format.
http://andrie.github.io/sss/
8 stars 5 forks source link

Write SSS data #8

Closed rbirkelbach closed 4 years ago

rbirkelbach commented 7 years ago

Hello,

would it be possible to implement a function that writes a triple-s data file?

Best and thanks, Robert

andrie commented 7 years ago

I'm sure it's possible. Do you want to contribute some code?

rbirkelbach commented 7 years ago

Unfortunately, I do not know enough about sss files (ie. I barely know anything about sss). The company I work for evaluates whether it's worth it switching to R from SPSS and this is the only task I was unable to figure out how to do so with R that they want to do. Your R library was the only library I found that can handle triple-s files at all.

andrie commented 7 years ago

Well, if this is the only thing that prevents them from switching to R, then there is bound to be a positive business case to get a contractor to do this work.

I don't think it's particularly difficult to do. The sss standard simply defines a description of the columns as XML output.

This package already does the reverse operation, as you pointed out. So it should be a fairly mechanical task. You will need someone who knows a little about R and a little about XML.