TobKel

2

votes
1

answer
17

views

R Position of figures in RMarkdown

I want to knit an article in RMarkdown but the figures (tables) don't appear at the correct position in the document (pdf). Here I can show you my problem in the example data. The table should appear after the appendix: Can someone show me how I can solve this problem? And here is y example code: -...
TobKel
1

votes
2

answer
33

views

R Add number of elements in a table

I want to add the the number of values in a table of t-tests. Here is my example-code: library(broom) library(purrr) t1
TobKel
1

votes
1

answer
13

views

R Markdown keywords don't appear in the document

I want to knit a pdf-document but the keywords don't appear in the final document. Can someone say me what I'm doing wrong? --- title: 'title' subtitle: 'subtitle' author: 'author' date: '09 04 2019' output: pdf_document: keywords: 'word1, word2, word3' footerdate: yes abstract: 'Insert abstract her...
TobKel
1

votes
2

answer
0

views

R Continue t.test in a map-function, although there are not enough observations

In my example data I have 3 dataframes. Every df has 2 variables (varA and varB) per threshold. There are 3 thresholds (1, 2, 3): df1 % add_column(.before = 'estimate', df = df_name, threshold = thresholds) }) %>% do.call(rbind, .) This code will map all results in one df. But the problem ist tha...
TobKel
1

votes
1

answer
0

views

group_rows in a for-loop to create a table

Here is the code for my example-data: library(tidyverse) library(kableExtra) library(knitr) df1 % do.call(rbind, .)%>% select(-estimate, -parameter, -conf.low, -conf.high, -method, -alternative) In the last step I want to group the rows by the dataframes in the table: table.t.test%>% kable()%>% kab...
TobKel
6

votes
5

answer
61

views

ifelse() function - refer to the following day

I have a dataframe with 2 columns: the date and the return. df
TobKel