-1
For example I want to write a second name
nome<-c[scan("")]
#insirindo uma sequencia de numeros
idade<-scan()
1: 45
2: 65
3: 12
4: 32
5: 23
6: 78
7: 87
8: 98
9: 12
10: 555
11: #tecle enter para parar
#verificando valores
idade
[1] 1: 45 65 12 32 23 78 87 98 12 555
is a string array like in the example : age<-scan()
– alexoab oab
You want to turn this into a data frame?
– bbiasi
I think I got : name<-scan(what = Character())
– alexoab oab
I tested here, I saw no difference as to the structure. The use of the
scan
, From what I’ve seen, it only gives you the opportunity to type in your words of interest on the console, but if you do this and you doView(nome)
you can see that this is the same result using thec
for vector breeding.– bbiasi