using MAT
directory = "C:/MyData/"
files = readdir(directory)
global tournaments = Vector{String}(undef,10)
for i = 1:10
event = matread(directory*files[i])
tournaments[i] = event["tournament"][1]
end
infoType = Array{DataType,1}([String])
DataFrame([tournaments], types = infoType)
The error is the following:
MethodError: no method matching DataFrame(::Array{Array{String,1},1}, ::Array{Symbol,1}; types=DataType[String])
I am having problems understanding what is wrong. Does the error have to do with the .mat import?