1

my intention is to know how I can extract or convert to data.frame or any other, well my goal is to try to use it in knitr with latex.

library(foreign)
library(sjPlot)
tb = read.spss(file = "dates.sav",use.value.labels = T,to.data.frame = T)
c = sjt.corr(tb[c(1,3,5)],show.p = T,p.numeric = T)
c # view in html

when trying to use knitr with latex a tremendous html code comes out and not the table seen in R.

<<echo=FALSE>>
c = sjt.corr(tb[c(1,3,5)],show.p = T,p.numeric = T)
c % show code html
royer
  • 615
  • 1
  • 6
  • 19
  • `sjt.corr()` - or in general, the tablr-functions in package sjPlot, only produce HTML-tables, which can be easily integrated in knitr-HTML documents, or copy-pasted to Word, but unfortunately, they don't work well with Latex-output. – Daniel Feb 01 '20 at 11:11
  • Hi @Daniel, Is there a similar library that generates results **similar to SPSS**? concerning variable correlation – royer Feb 01 '20 at 17:06

0 Answers0