export function rowmeans