Hi Folks, I want to export a dataframe's column classes to a list so that I can reinstantiate the dataframe from a CSV file in the future. (I know about save(), which I'm using in addition to this).
what I want to do is the following: write.csv(myframe); col_classes = get_col_classes(myframe); write.csv(col_classes, "column_classes") ... time passes, R gets closed, etc ... col_classes = read.csv("column_classes") new_myframe = read.csv("myfile.csv", colClasses = col_classes) My question is how to construct the "get_col_classes()" function above. Any thoughts are greatly appreciated! Thanks, Allie -- Alexander Shenkin PhD Candidate School of Natural Resources and Environment University of Florida http://snre.ufl.edu/people/students.asp ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.