Browse Source

labels

master
Maxime Wack 10 years ago
parent
commit
7898b4a534
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      R/charger.R

+ 4
- 2
R/charger.R View File

@@ -30,9 +30,11 @@ charger <- function(fichier,nom,feuille=1)
if (file.exists("labels"))
{
label_exe = paste("label(",as.character(substitute(nom),")<-c(")
labels=readLines(con=file("labels","r",encoding="ISO-8859-1")
labels=paste(labels,collapse=",")
label_exe = paste("label(x)<-c(",labels,")")
eval(parse(text=label_exe))
}
assign(as.character(substitute(nom)),x,pos=1)
}

Loading…
Cancel
Save