[R] manipulate all files in folder

Philippe Grosjean phgrosjean at sciviews.org
Fri Jan 10 10:37:02 CET 2003


read:

?paste

and use:

paste(path, file, sep="")

Best,

Philippe Grosjean

...........]<(({°<...............<°}))><...............................
 ) ) ) ) )
( ( ( ( (       Dr. Philippe Grosjean
 ) ) ) ) )
( ( ( ( (       LOV, UMR 7093
 ) ) ) ) )      Station Zoologique
( ( ( ( (       Observatoire Océanologique
 ) ) ) ) )      BP 28
( ( ( ( (       06234 Villefranche sur mer cedex
 ) ) ) ) )      France
( ( ( ( (
 ) ) ) ) )      tel: +33.4.93.76.38.16, fax: +33.4.93.76.38.34
( ( ( ( (
 ) ) ) ) )      e-mail: phgrosjean at sciviews.org
( ( ( ( (       SciViews project coordinator (http://www.sciviews.org)
 ) ) ) ) )
.......................................................................


-----Original Message-----
From: r-help-admin at stat.math.ethz.ch
[mailto:r-help-admin at stat.math.ethz.ch]On Behalf Of Christian Schulz
Sent: vendredi 10 janvier 2003 10:21
To: r-help at stat.math.ethz.ch
Subject: [R] manipulate all files in folder


Im just attempt writing a function
which import manipulate and export spss data, my
basic problem  when i use the cat command
that their is a space to much ?

Perhaps here exist a better solution ?

cat(paste(path),paste(file))
c:/Project/Allbus/ aprioriTotal.sav

test <- function(dir) {
for (i in 1:length(list.files))
path <- "c:/Project/Allbus/"
file <- list.files()[4]
tmpdata <-
read.spss(cat(paste(path),paste(file)),use.value.labels=F,to.data.frame=T)

thanks for advance
& regards,christian


	[[alternate HTML version deleted]]

______________________________________________
R-help at stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list