myarray[1,2]
4.3 元组
julia> my_tuple = ("hello","world")
("hello", "world")
julia> typeof(my_tuple)...Tuple{String,String}
julia> getindex(my_tuple,2)
"world"
typeof()函数可以用于检查数据对象的类型结构(同R中的typeof,区别于Python...#julia的数据框并非内置类型,而是需要额外加载包
julia> DataFrame(A = 1:4, B = ["M", "F", "F", "M"])
4×2 DataFrames.DataFrame..."])
join(names, jobs, on = :ID)
现实中数据合并的多种情况,julia中的DataFrames中的dataframe都能够很好地满足。...(iris, :Species,df -> DataFrame(m = mean(df[:PetalLength]), s² = var(df[:PetalLength])))
3×3 DataFrames.DataFrame