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: [EMAIL PROTECTED]
( ( ( ( (       SciViews project coordinator (http://www.sciviews.org)
 ) ) ) ) )
.......................................................................


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian Schulz
Sent: vendredi 10 janvier 2003 10:21
To: [EMAIL PROTECTED]
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]]

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to