Define a matrix, vector and determinent in rmarkdown html document

0 votes
How to define a matrix,vector and determinent in rmarkdown html document.
Jul 31, 2019 in Data Analytics by riya
45 views

1 answer to this question.

0 votes

Hi Riya,

I have given some examples below for each.

Matrix:

$$\begin{bmatrix}1 & x_{1}\\
1 & x_{2}\\
1 & x_{3}
\end{bmatrix}$$

Vector:

$$\mathbf{u} = 5\vec u+7\hat y$$

Determinant:

$$\begin{vmatrix}a & b\\
c & d
\end{vmatrix}$$

The statements start with $$ followed by \beginmath function (or symbol) and characters. A new line is added using \\ and end the math expression with \end and $$

Run these examples and try yourselves.

For more information, check out this manual.

https://bookdown.org/yihui/rmarkdown/markdown-syntax.html

answered Sep 17, 2019 by rahul

edited Sep 17, 2019

Related Questions In Data Analytics

0 votes
1 answer

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

Structured query language (SQL) is a programming ...READ MORE

answered Aug 24, 2018 in Data Analytics by Anmol
• 3,680 points
399 views
+1 vote
2 answers

Custom Function to replace missing values in a vector with the mean of values

Try this. lapply(a,function(x){ifelse(is.na(x),mean(a,na.rm = TRUE) ...READ MORE

answered Aug 14, 2019 in Data Analytics by anonymous
118 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points
96 views
0 votes
2 answers

How to count the number of elements with the values in a vector?

Use dplyr function group_by(). > n = as.data.frame(num) > ...READ MORE

answered Aug 21, 2019 in Data Analytics by anonymous
• 32,420 points
147 views
0 votes
1 answer

Display only output and caption with any warnings or code in Rmarkdown

Use echo=FALSE and fig.cap = "caption in ...READ MORE

answered Jul 30, 2019 in Data Analytics by anonymous
38 views
0 votes
1 answer

display the output r code as title in R script Rmarkdown script to html page

Use the file input from parameter and ...READ MORE

answered Jul 30, 2019 in Data Analytics by anonymous
49 views
0 votes
1 answer

parameterized reports using RMarkdown

Add params attribute like below specifying dataset ...READ MORE

answered Nov 4, 2019 in Data Analytics by kamal
63 views
0 votes
1 answer

Error: object 'params' not found.

@pragyat, Remove " " around data value in ...READ MORE

answered Nov 4, 2019 in Data Analytics by priya
149 views
0 votes
1 answer

How to convert a continuous variable to discrete variable and vice versa in R?

Discretize function convert a continuous variable into ...READ MORE

answered Nov 4, 2019 in Data Analytics by rajeev
153 views
0 votes
1 answer

Hide and show labels by default in maps

Hi, You need to just add an attribute ...READ MORE

answered Sep 23, 2019 in Data Analytics by Cherukuri
• 32,420 points
33 views