[Solved] How to analyze the data whose different rows have different number of elements using R?

[ad_1]

using the readLines and strsplit to solve this problem.

text <- readLines("./xx.txt",encoding='UTF-8', n = -1L)

txt = unlist(strsplit(text, sep = " "))

[ad_2]

solved How to analyze the data whose different rows have different number of elements using R?