Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Mathematical operations 1
#R version 3. #SOME OF THE MATHEMATICAL OPERATIONS IN R. #TYPE OF SOME MATHS . ans1=(pi^2)*2-sqrt(64) ans1 ans2=abs(23-18*5/3-12) ans2 ans3=factorial(4)+sqrt(125)+3*pi ans3 #Natural log ans4=log(10) ans4 #Simple log ans5=log(2,10)+log(16,base=4)+log10(5) ans5 #EXPONENTIAL FUNCTION ans6=exp(10) ans6 ans7=log(22026.47) ans7 ans8=log(10,5) ans8 ans9=5^1.43677 ans9 #TRIGNOMETRY FUNCTION ans10=sin(30*pi/180) ans10 ans11=asin(0.5)*180/pi ans11 #STORING THE RESULTS OF CALCULATION. ans3.1=234*15/6-19*5+7*pi/3 ans3.1 ans3.2=ans1*ans2 ans3.2 #2.4:-Reading and getting data into R. #2.4.1:- Using the combine command for making data . #c(item1,item2,item3) #Numerical data . data2.4.1=c(2,5,8,10,15,12,9,41,48,19,20,58) data2.4.1 data2.4.2=c(100:800) data2.4.2 data2.4.3=c(data2.4.2,900:950) data2.4.3 data2.4.2=c(data2.4.2,900:1000) data2.4.2 #2.5=DATA AS TEXT ITEMS #name=c('item1',"item2",'item3") day1=c('mon',"tues",'wed') day1 day1=c(day1,"thrus",'fri') day1 mixdata=c(1,2,3,4,5,day1) mixdata #2.6:- The 'scan' command for making data . #name=scan() #2.6.1:- use the scan command to make numerical data data2.6.11=scan() 2 4 6 8 9 40 30 68 98 119 115 120 55 67 87 89 56 54 data2.6.11 #2.6.2:- use the scan command to make the text data. #name=scan(what='character') data2.6.21=scan(what='character') Mon tues wed Thrus fri data2.6.21 data2.6.22=scan(what='character') 1 2 3 mon tues we'd Thrus Frid satur data2.6.22 #2.6.3:- using the clipboard to make data data2=scan() 44 65 56 76 87 67 45 90 data2 data2=scan(sep=',') 12,10,15,16, 20 18,17,19,32 data2
run
|
edit
|
history
|
help
0
Graph
example
practica 2
R exemplo
SEIR-Modell
Practice
Warhammer 40k
19-08-2020-JacobiSistemaNewtonaprpx
Predictive power of a test when False positive rate = False negative rate
Practice R programming