Message-ID: <3ED77DE7.2030508@pdf.com>
Date: 2003-05-30T15:51:03Z
From: Spencer Graves
Subject: conversao para matriz
Have you considered "regexpr" and "substr" or "substring"?
hth. spencer graves
Danilo Tadashi Tagami Kamimura wrote:
> ol?,
> estou tentando converter a vari?vel b (abaixo) em uma matriz com duas
> colunas, sem muito sucesso, algu?m teria alguma sugest?o?
>
> muito obrigado,
>
> a<-outer(1:5,1:7,FUN="paste")
> b<- sample(a,10)
> [1] "4 2" "5 7" "3 3" "4 1" "4 5" "3 5" "5 2" "2 1" "3 7" "1 4"
>
> Matriz desejada:
>
> 4 2
> 5 7
> ......
> 3 7
> 1 4
>
> __________________________________
> Danilo Tadashi Tagami Kamimura
> Engenharia Agron?mica ESALQ USP
> <<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help