Use rcast instead of rsubset