search for: mycolum

Displaying 1 result from an estimated 1 matches for "mycolum".

Did you mean: mycolumn
2008 Oct 29
0
Propagate vector attributes to data frame
...ion(df, ...) { df <- apply(df, 2, myFunction , ...) } myDataFrame[cols] <- myFunction(myDataFrame[cols]) Unfortunately, it seems to me that the attributes set in myFunction are not transferred into the data frame. At least I can't figure out how to extract them. attributes(myDataFrame$myColum) is NULL and there is nothing in attributes(myDataFrame) that looks like a possible myAttr. Is there a way so that attributes of numeric vectors could be kept in the data.frame? Thanks in advance, Xavier Robin -- Xavier Robin Biomedical Proteomics Research Group (BPRG) Department of Structural...