diff rdata_reader.R @ 0:10212598b005 draft

Uploaded
author mnhn65mo
date Tue, 07 Aug 2018 06:02:29 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdata_reader.R	Tue Aug 07 06:02:29 2018 -0400
@@ -0,0 +1,8 @@
+#!/usr/bin/env Rscript
+#Return list of attributes from a Rdata file
+
+args = commandArgs(trailingOnly=TRUE)
+rda<-load(args[1]) #Load the rdata
+rdata<-get(rda)
+names<-names(rdata) #Get the attributes
+write(names, file = "rdata_list_attr")