Displaying 4 results from an estimated 4 matches for "frameapply".
2005 Dec 13
0
Updated version of gdata, gtools, gplots and gmodels
...description of changes:
CHANGES IN GDATA 2.1.2
-----------------------
- Fixed bug in interleave.R - option to covert 1-column matrices to
vector (based on Andrew Burgess's suggestion)
- Updated Greg and Jim's email adresses
- ll.R: Suppressed warning message in attach() call.
- frameApply.Rd, reorder.Rd: Remove explicit loading of
gtools in examples, so that failure to import functions from
gtools gets properly caught by running the examples.
- upperTriangle.R, man/upperTriangle.Rd: Add functions for
extracting and modifying the upper and lower trianglular components of...
2005 Dec 13
0
Updated version of gdata, gtools, gplots and gmodels
...description of changes:
CHANGES IN GDATA 2.1.2
-----------------------
- Fixed bug in interleave.R - option to covert 1-column matrices to
vector (based on Andrew Burgess's suggestion)
- Updated Greg and Jim's email adresses
- ll.R: Suppressed warning message in attach() call.
- frameApply.Rd, reorder.Rd: Remove explicit loading of
gtools in examples, so that failure to import functions from
gtools gets properly caught by running the examples.
- upperTriangle.R, man/upperTriangle.Rd: Add functions for
extracting and modifying the upper and lower trianglular components of...
2006 Apr 21
2
forcing apply() to return data frame
Hi All,
I am (almost) successfully using apply() to apply a function recursively
on a data matrix. The function is question is as.genotype() from the
library 'genetics'
apply(subset(chr1, names$breed == 'lab'),2,as.genotype,sep ="")
Unfortuantely apply puts it's results into a matrix object rather than a
data frame, tranforming my factors into numerics and
2010 Dec 06
5
How can I refer to actual (n) and previous (n-1) elements in a vector?
Hello,
How can I apply a function on a vector that refers to actual (n) and previous elements in the vector (e.g. n-1)?
For example:
I would like to calculate the sum of (n-1) + n for each element of a vector and get a vector as a result.
Besides others I tried this:
v<-c(3,6,8,1,1,3,9,5,6,3)
for (i in 1:NROW(v)){a[i]<-a[i-1]+a[i]}
I would like to get this result: