Skip to content
Back to formatted view

Raw Message

Message-ID: <630e08513bcf37ff8c4409a0974e4645@beuth-hochschule.de>
Date: 2012-10-29T17:11:29Z
From: paladini
Subject: naming datasubsets in a loop

Hello everbody,
I want to generate different subsets of my data-set and safe this 
subsets with names listet in a vector. Because in reality I have got 
about 70 subsets I want to realize this in a loop
Somehow like this:


names=c("nam1", 
"nam2","nam3","nam4","nam5","nam6","nam7","nam8","nam9","nam10")


for (i in 1:10){

subset(originaldata, originaldata[ ,130]<=time[i]) #This subset should 
get the name  safed in "names" on position i



}


I don't know how to realized it. None of my attempts worked,- so I 
would be grateful for help.

Best regards

Claudia