view rdata_reader.R @ 0:10212598b005 draft

Uploaded
author mnhn65mo
date Tue, 07 Aug 2018 06:02:29 -0400
parents
children
line wrap: on
line source

#!/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")