[R] Need help in R

Anas Jamshed @n@@j@m@hed1994 @end|ng |rom gm@||@com
Tue Oct 26 22:09:50 CEST 2021


I need help to these questions

### Question 1
Create a variable containing a sequence of numbers from 1 to 100:

Iterate over the variables and print those numbers which are prime.


### Question 2
Create a matrix of size 3x3 called mat_1:

 Iterate over all the values one by one and print the element as well as
the position in the matrix (row, col)

	[[alternative HTML version deleted]]



More information about the R-help mailing list