% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convertCSVtoRdata.R
\name{convertCSVtoRdata_DE}
\alias{convertCSVtoRdata_DE}
\title{This function converts the given RDC comma seperated value files into Rdata. It is important to verify before if the national RDC provides the data
in the form as desired by this function.}
\usage{
convertCSVtoRdata_DE(
  datafiles.dir = NULL,
  intermediate.dir = NULL,
  filename.old = NULL,
  filename.new = NULL
)
}
\arguments{
\item{datafiles.dir}{Directory of the raw data files}

\item{intermediate.dir}{Destination directory of converted Rdata}

\item{filename.old}{Names of the raw data files (without file type)}

\item{filename.new}{Names of the Rdata data files (without file type)}
}
\value{
Nothing returned, but Rdata exported to destination folder.
}
\description{
This function converts the given RDC comma seperated value files into Rdata.
}
\details{
This function is written for the German Farm Structure Survey data as it was provided in the year 2018.This means, that the RDC provides to data sets. One is the
'old' data set which has variables in the former declination (EF codes) and contains data at maximum data from 1999, 2003 and 2007. The second data set
is declinated in C/C0 codes and has data from 2010, 2013 (only sample), 2016 and 2020 (as of 2021).

How much variables the researcher has requested or how many years depends. This function works fine for all years and all variables up to 2016.

This function needs of course the data as well as a specific folder structure, at least the RDC data file names and the specific folder names where these files
are located and where they should be exported as Rdata files.
}
\examples{
\dontrun{
convertCSVtoRdata_DE(datafiles.dir="D:/data/in/",intermediate.dir="D:/data/temp/",
   filename.old="Panel_old",filename.new="Panel_new")
}
}
\author{
Sebastian Neuenfeldt
}