search for: amortsbyyears

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

2012 Jun 15
1
Divide all rows of a data frame by the first row.
Folks, I call the function calcAmorts like so: calcAmorts(prevAm, amort, myDates) Note that I use the package lubridate. The last line where do.call is called to first divide all the rows by the first row and then rbind gives the following error: Error in do.call("rbind", apply(amortsByYears, 1, "/", amortsByYears[, : second argument must be a list By contrast if I run do.call('rbind', apply(amortsByYears, 1, "/", amortsByYears[,1])) On its own with any kind of numeric data.frame the call works fine. That is it divides every row in the data.frame by...