Displaying 2 results from an estimated 2 matches for "currentname".
2010 Feb 11
2
Unexpected output in first iteration of for-loop
...rTDD", "rStandup", "rRetros", "rAccess",
"rAccTest")
#####
loopCronbach <- function(latentVariableNames, groupingVariable)
{
result <- latentVariableNames
names(result) <- c("latentVariable", "Indiv", "Group")
for (currentName in latentVariableNames)
{
print(currentName)
print(result)
tmp1 <- calculateIndividualCronbach(get(currentName))
tmp2 <- calculateGroupCronbach(get(currentName), groupingVariable)
result <- rbind(result,data.frame(latentVariable=currentName,
Indiv=tmp1,Group=tmp2))
}
return(result)
}
a &...
2010 Feb 10
1
eval function with javascript-semantics possible in R?
...items1 <- read.csv(testfile1, dec=",");
items2 <- read.csv(testfile2, dec=",");
The way I intend to use it is to define a string list containing names of
date.frames,
and interate this list to perform some function:
createTable <- function(latentVariableNames)
{
for (currentName in names(latentVariableNames))
{
doSomethingWith(currentName)
}
}
Would be grateful for any help!
Chaehan
[[alternative HTML version deleted]]