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 in Data Analytics by riya
26 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 by rahul

edited Sep 17

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,620 points
135 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 in Data Analytics by anonymous
85 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
78 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 in Data Analytics by anonymous
• 28,040 points
118 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 in Data Analytics by anonymous
20 views
0 votes
1 answer
0 votes
0 answers

parameterized reports using RMarkdown

Hi, how to add parameters to Rmarkdown ...READ MORE

Jul 30 in Data Analytics by abhishek
21 views
0 votes
0 answers

Error: object 'params' not found.

Hi, i tried to add params to ...READ MORE

Jul 30 in Data Analytics by pragyat
49 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 in Data Analytics by Cherukuri
• 28,040 points
9 views
0 votes
1 answer

Format the date values in a specific format

@ch, Use format.Date function to convert one format ...READ MORE

answered 4 days ago in Data Analytics by Cherukuri
• 28,040 points
9 views