search for: chaehan

Displaying 4 results from an estimated 4 matches for "chaehan".

2010 Mar 16
2
Missing index in vector assignment
...4.500000 5.812500 6.145833 5.979167 5.031250 ... but I still get y without the indexes as a vector: y [1] -1.00000000 -6.91193182 -1.00000000 0.74431818 -6.91193182 Why are the results different for x and y, even though the assignment is the same except I exclude the columns for y? Cheers, Chaehan [[alternative HTML version deleted]]
2010 Feb 10
1
eval function with javascript-semantics possible in R?
...y 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]]
2010 Feb 11
2
Unexpected output in first iteration of for-loop
Dear r-helpers, why do I get an output in the first iteration of the for-loop which contains the string values of the input vector, and how can I avoid that? Here's the output (only line 1 is wrong) latentVariable Indiv Group 1 rPlanning rIterat rTDD 2 rPlanning 0.79 0.84 3 rIterat 0.79 0.83 4 rTDD 0.9 0.96 5 rStandup 0.83 0.82 6
2010 Feb 10
1
mean calculation within dataframe corrupted
Dear R-helpers, my little function below calculates the group score (tmpGroupMean) of an item, appends a "_mean" on its name and stores its value on this name. However, it does not calculate the mean of these scores (LVMean) in the same row correctly, as you can see in the below output which strangely also contains NAs. What is wrong?? Thanks for any hint!!! ###### ## start