[R] question to define a matrix with some vectors with different lengths

jim holtman jholtman at gmail.com
Tue Mar 2 14:11:00 CET 2010


This is what you would use a 'list' for.

On Tue, Mar 2, 2010 at 6:29 AM,  <khazaei at ceremade.dauphine.fr> wrote:
> Hi,
> I have some vector v1,v2,...,vk, with different  lengths. I want to
> consider these vectors as a matrix with k rows.
> Can you please guide me how I can do it?
>
> Regards
> khazaei
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?



More information about the R-help mailing list