Hello Hans,
Thanks for the reply,
already changed and it gives me the following error
Error in strsplit(line, ",*") : non-character argument
#dataset read file
dataset
num<-nrow(dataset)
num
#results
> dataset
A.B
1 A,B,D
2 F,G
3 A,B,E
4 F,G
5 E,H
6 A,E
7 E,H
8 A,B,C
9 E,H
Hello
To be more specific, my problem is here
Line <-dataset $ Items [i]
print (line)
in.s <- strsplit (line, '')
I am reading lines from a file
Line 1 A, B, C, D, G
Line 2 A, C, E,
...
line n F, G
the problem is that I can not make the split of the comma, so I can not get
the
I am using the following code but I do not know the debug and run for
correct errors
library (tcltk)
file <-tclvalue (tkgetOpenFile ())
if (nchar (file))
{
tkmessageBox ("Select the file")
}
else
{
tkmessageBox (message = paste ("Was select file", file))
Dataset <