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
39 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
267 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
108 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
91 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
• 32,260 points
139 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
29 views
0 votes
1 answer
0 votes
1 answer

parameterized reports using RMarkdown

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

answered Nov 4 in Data Analytics by kamal
43 views
0 votes
1 answer

Error: object 'params' not found.

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

answered Nov 4 in Data Analytics by priya
100 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 in Data Analytics by rajeev
114 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
• 32,260 points
23 views