You can use matrix:
A=matrix(c(1,4,7,10,2,5,8,11,3,6,9,12),c(3,4))
B <- matrix(A, 2, 6)
On Mon, Apr 26, 2010 at 4:58 PM, anderson nuel wrote:
> I would find function which change the size automatically.
>
> For example:
>
> > A=matrix(c(1,4,7,10,2,5,8,11,3,6,9,12),c(3,4))
> > A
> [,1] [,2] [
I would find function which change the size automatically.
For example:
> A=matrix(c(1,4,7,10,2,5,8,11,3,6,9,12),c(3,4))
> A
[,1] [,2] [,3] [,4]
[1,]1 1086
[2,]42 119
[3,]753 12
B=func(A,2,6)
B becomes:
13579 11
24
On Apr 26, 2010, at 3:58 PM, anderson nuel wrote:
I would find function which change the size automatically.
Read the help page again. You have too quickly formed an erroneous
conclusion.
For example:
> A=matrix(c(1,4,7,10,2,5,8,11,3,6,9,12),c(3,4))
> A
[,1] [,2] [,3] [,4]
[1,]
On Apr 26, 2010, at 3:18 PM, anderson nuel wrote:
Dear r-help,
Could you help me to find the function which change the size of
matrix .
?dim
Best Regards
David Winsemius, MD
West Hartford, CT
__
R-help@r-project.org mailing list
https://s
Dear r-help,
Could you help me to find the function which change the size of matrix .
Best Regards
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posti
5 matches
Mail list logo