r - error unlisting result of lapply -
i have run lapply like:
paper_author_name<-lapply(train_author,function(x){ as.data.frame(paper_author$author_name[which(paper_author$author_id%in%x)]) })
i getting result as:
[[1]] paper_author$author_name[which(paper_author$author_id %in% x)] emanuele buratti emanuele buratti abdiub bahir
now need unlist result by
unlist(paper_author_name[1])
but getting error
error in structure(res, levels = lv, names = nm, class = "factor") : 'names' attribute [135] must same length vector [1]
how unlist result.
thanks
Comments
Post a Comment