SCM

SCM Repository

[microdataes] View of /pkg/R/test.metadata.R
ViewVC logotype

View of /pkg/R/test.metadata.R

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (download) (annotate)
Sat Aug 2 12:54:49 2014 UTC (5 years, 2 months ago) by cjgb
File size: 722 byte(s)
Fixed encoding issues
###################################################################
# cjgb
# 20120305
# Function intended for testing metadata files
###################################################################

test.metadata <- function( file, md.1, md.2, md.3, encoding = "UTF-8" ){
  
  file.column  <- create.spss.column(md.1, md.2, encoding = encoding)
  file.var     <- create.spss.var(md.1, encoding = encoding)
  file.vals    <- create.spss.vals(md.2, encoding = encoding)
  file.missing <- create.spss.miss(md.3, encoding = encoding)
  
  res <- spss.fixed.file( file = file,
    columns.file = file.column,
    varlab.file = file.var,
    missval.file = file.missing,
    codes.file  = file.vals )
  
  as.data.set(res)
}

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge