KEMBAR78
R Programmng | PDF
0% found this document useful (0 votes)
46 views19 pages

R Programmng

Big data notes in mca full unit assessment in study material union human ma amma OOO amma meda promise you tube lochustha ok thanks you tube lochustha ok thanks for the day yuva morcha t shirt money to r programming language ke liye bhi kuch bhi nahi hua hai na ki korbo bujte parsi na valla kadhu anna hazare kiran bedi anna hazare kiran bedi anna hazare kiran bedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
46 views19 pages

R Programmng

Big data notes in mca full unit assessment in study material union human ma amma OOO amma meda promise you tube lochustha ok thanks you tube lochustha ok thanks for the day yuva morcha t shirt money to r programming language ke liye bhi kuch bhi nahi hua hai na ki korbo bujte parsi na valla kadhu anna hazare kiran bedi anna hazare kiran bedi anna hazare kiran bedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 19
ASSIGNMENT -! P lolesh : 23421 foo, : exploin abeat type of deta stems ine Pea] a peading and getting Jaba inte @ 7 txplain the precedute ancl _concefls ate reading data inte @. a); explain about structure of edo By Explain viewing homed obrects. gy converting yore one obtect fo ancther obsect. ) Tyres of Deka ‘Hemi - oi i have Seen’ hous Le aeala god Staple “inathithabicad ee : i ° creele Simples,and how te tead in bypre complex cake containing truttiple columns Sew 16 a good time lo look ithe tye ceo item the | Number dete You may come ackess.youk dala them 7 1 Fin Valoecthee ate wble nutbers abe chleger Value 6, whe teas ue thy contain decmalg are numebic the dis nralish 1g aly mihot , but if you have Lt! Valuz contath both Lentath Rowill FeGbd entite sample ag numeric > dota 3 Hn: 69H °4)-95.8 9. dota] lov, tuys ¢ | 0'Bs0 IFO IVS y Mee IOV IMT, FO MO GO NS Ms In the fist example the Value all whole numbers Jn the second exalrfle some pf precision this case the ¥ all the least’ one decimal place. \ text: Thems i. SP he de... hee humbe be You rust hove eck OR pecogni page oe tect dake dem - ou can think of the ‘ret kind 5 aa labels: R calls these charavé? Value. dated: "Tan" feo "war "APE! may" _ these stems diselay As plat h eat ond have ake rnabke to fermind you: reib Moy Mew mow Uhmow Unmow uhmow Uuhmov Level 6! me ur Une + Here the dada are dest bibdhey ate nol sh qoutes hen in be displayed thefert appears Plain loithut qaote roar ke A but gecall the thed> You met pkeviously ‘§ _ >9tass, | epectes cut i baw how a a x 3 Z f JOU wt show) & Hori 4 how § it, » Buhmee , AUAmow + Udmous Fun mow : : i i 3 * Howeve' you zor elect to bead ahV columh ag plih lek ging a6 «16> ingthuction. Giess 2: bead egy (dle choose (0, 06 esa) Veetob: Hems i. $0 tor you have mek tus kinds of data -veelors and cathy ives Vertok can be though of ache - dimensioned ovrect, Yo qieeied veetops con taining 2 sl0g}e item Lom come athe J, érere ions You lee aeated veetos iby waking Gin le Vales 4 a ' 4 7 . ‘ i doba > Ton « ope eee nAppe may! » ade ko, on is tle 612-8 UF, 90, 11.5, 90-fayp ASSIGNMENT -| ; the Lirst one ov veckor of fext value the Se cond of pumeric | Value. you could also have ‘vette fedons cut , Catliet i an example facet vertor. oe tebrecg, eal trove frets mols mow .UNbos wy ul _unmow is 0 veelop pmol » Uhnow , love tr, ‘yeh OR 64, deka Sraines 7 oF You ave leo alteaty toh the dala fhame s A sole sul, ceo dtm cobte ct thet TE have Yous and columns, Al the dada fomeg Fare tedohgular @ will pad sub any “shoit?.coluinbs Using wA | Heke % a simple example you mat PreVewly, the seahd cilahn is | @lled and contains our obse Herons Qh aes no Cae ° Uhmois oe ; to cut | 2 a is rete : 2s q oc ‘meus pw 8 ‘i mous Y ie Bubmmrow you q & 9 unr [i ee gcbinmoy the second frm ofthe dota fame +6 wok ube (ul. especially 2 dab ishieal analysis. Thig % because there are ho WA ‘ley } gtab ise fe 5 6 boas he shre. / , : \ ‘ ibing Ptolp payed. is toro = dtmensishal sabe cheek Ast akne ‘ max 1S he mathix looks qesl like a deb frame >btkd ASSIGNMENT -! garden He d3ebow Parkland rastuse ieocd ey Jack bitd -— a ue Q Pe ee ee qreat tit so 8 zt 6 ; House sfatow 46 re 3 4 [ 3 3 6 ° a } ° Rebih q Geng thhsh = 4 ae é n Hhig’ example cab GL come observabiohs versed of catty tdg"and ‘the habt tok ahich they wete. observed . 7 mallkix’ cak consist: of asingle you oF @ging/e coluoh: nd oles appeal pat Gke vedo chmeb. “Hat obtecle. . oe | pA list 28 series of thems bundled fogethek fortn @ sine. Th the follwing example grass Jala You Fhevfeusly beep mad ihle A lish: i Gass -/ i $ mow i OH] 215 pen 1s “ $urmouds £0 8979» I, : ; hen you look abi t pel gd act iL pu 6 & each vedor listed ai Salen g with the hame ahich x phe {x dolla) oon an ifpnnble ; obsect = alse with a uslf Bnd in due cai, " “ASSIGNMENT -1 6 _ feeding and and delting _ Dato inle 8 i on and gelling data tobe g one of the ane babs a debe Analysis: allosing Youto tmPor} dads bos @ Pan? puladion . | Hete's olep —by-cle p creas

Fead -csv (data, eet) : i > Reading excel, Ale: => Pockage \eadx! . !erantler => fanclen ea wexeel’ 0 (flora "ead x!" = Usage ; Usbhay Leead 1 18 sek chads) mpath'"/to /your / file -sbe" deta L-jead -ecel (Fi bxarople ae £-t0ad - excel te dada alge" ", sheab + eshedht") Qa 1a 3 > Reading qext files sp > “endtwn es “yeod table. 0! bead del usage - tes, header-Maue, dads £-read-Sople(* Path Ao tur fk: ers") Example > ae siti cade wt) ol ASSIGNMENT -! i 2 ¥) Reading pale hom dheweb eee ee ——— i fanebioh Usage: | * * . i data Z- bead. csv L"blbpsi/ exoiele com jaedn.cev" ) vend wcgv ph cov! bead lines () for tow tert-ete. bialnfle - ' ‘ whe ped 4 ; dda & bondi dbes Crtildp sy) exotonle cols / dada del"): =) Package ' Ieonlite! => function forngeon0! Ucoge - he i Ubyaty C jeonls te) doba 2. Spin) 3608 ¢? poth | tolyaut/ file «teon” ) ezansle ~ dada. £ fore sean (gaa. Isob") 8) Reod ing data froin daka base: =. =) Package ‘D8i" “' Reause! fa sar ve dyer base i => findion ‘abeome cto! ‘dbaetauert(>! : 1 Usage, | : con L-dbeannedt CRSAl Liber -saleile (>, “debe ventlet) data 2. dbddbauety Coon, hee gd + flom in Ylable' 5 IbDdisconhect (coh * : p> Reading pata fon Apis => «Package onthe! Usage’ Giorarychbte) be Spon Sed ~ Ge LUAbbe // pt example .com Meda") deiba Leohtent response, 1 parsed) ASSIGNMENT -1 * Concepts Behind the Proce ute: i speba_frameer Th R , deba Is typically thoted 4p data flames s which ate fable where each columh can be . of different typ nu Beric character facto, etc) ° tit tYFe » Wecborization’- Ris dog: ghed for wechbtized ‘oPepabiohc, whch means oPelying operations oVey enbte Colunhs ot pows e Ffecenty. : => hnemeky hoanagemeant pe R loads evitie dakasch: ints menety Se hardling large dda sels Feguipes cabefal con'sidetabon: of memory, Usate i i sbucture of deka. 26° ==> ven. way of ont te i dota slrclute is particular. ay jah '2ing dade : ast pate sothab, can be used effecttvely. the ats » peduce the apace Lime complexitie ¢ of ea: di ; iff erent tosh. pak olrudmes R phoghabning abe Eble for holding, rnulttele Value. ectors oa TP vedo: te an opdeted: collection of a eda Yre | given length =the, only, key thing. here pa i, elemen + i of vector rust be of the identical a ye i, “ad om ogeh gous deta structures -Vec tas one - dimenstoh a tuctures- yee U3 38) pktht (x) fl 13578 ‘tks 3 Abst 16 a Jeneke obtect consisting of ah otdefod collectog E oof obrects. list are heleroge neous data structures, He algo ohe —dimensichal data struclutes. alist of ist funclions and go-on these chatacters : ew PD > Cu2,2,4) OP Mame =e CV ioe worn shy y number of oe ni Sai", Shiba!) emp list = tet Comeid , am PL Prahre, d pent Cemplist m sroleod ASSIGNMENT -1 rr) BDza uy. rads + tr) "lok?" oe rieiy '* nd4 i la fares uta frame are eehatic dala obtact @ mith ued sb ‘ stole tabul, deh.a-Pakeltames are the fortes poPulak olata obract a Phogranming because we abe comfortable seeing deta with the tabular form. =A data-Lraine must haVe celumn hame’ and eVebyY bows should have a unique name. => bach coluioh must have the dehtical humber alt dens. => bach item th sinile column must be of the some dada typo . eorffeent columns have di (ferent dela tyre . th Wamné = ¢ C* Raj"; "loki”: Sai") i Language = ¢ C'R", "tetheb" “Tava") Age >a ass) af = dada flane Chain Slanguage , Age ) print Cd f tater. language Age Rol R nu Dloki — PYthoh OE ASSIGNMENT -1 rates “wow (d's we how do cede ameltix In R to chaste , You heed bo use function called mathry The ab o alement th ‘Veclop 16 matrices () & mmahy puinbek e+ bow ahd You matey remember >Y defoult metites t petery 1 R © arguments to th You. have fo pass how L you have to {tn columh wise oder. Ave, wakhen Le lrar3 Hts b 2/28) 9), pyew 23, heels ‘ ind pytows = TRUE > Print (A) Ye Bi, urd 37° 9 aHegs |. Anes ate the @ data 5 e Rd; ebTeds which i iS, Phebe than fuse dimensions. Abay heats the ‘date tn Stuctutes , tmensienal ot abe A = abtay (2¢ 1268, 4, b, 2,9) 1 be Ra), voy dthnsi¢ce 12,2) prinbts) i i ASSIGNMENT - | fas ctok: clots fac = facet Ce Cimate'y‘feirale", "trale", " male, Germaje! . e foaler , ‘ inctle ye eant (fae “Fe mole) ok Pe Er. male female rele tale femole male Female, levels , female male, , {ibbles pow lel's 22¢ how we can’ create tthble inR » tocteake tbble @ use the dbble function fom the dibble pocka Qe (tb tary (4 tbb/e’) : wy den L- Htbble Craime'='¢ Crtekt”, ‘nid, Sag A9= cl2rBo,3r) XK) city = eC Pune’ » "Tatar, “peli? J print Uny_ dada) , ham e age city vw tok: Sas Pune ; o. Amt 30 yarn 3. Aman ar pelhy data type Cobveksion ih g& i Doila type ol Hype of dota 4o another type Language has 3 age X- 20 pd L- FALSE byre of name) type of cage) axdeebs oy "character" BD Adouble'* afar ca” fogical" coh Versioh Lunebons ite == = ——— -22 aS-humerié (D type aS. nurnene (4) OF wesrrunons AuDpAMRA ono & yee Cid, 91) print (4) eiint Clee of uy) ¥£- as.numerie (4) Pint Clype of) ) > as. chatoctet (> XL-€ 3, 51 | ss, ’) Piht(y eH (bYpe ifn “aSra Pint yes phen lyre di) hame £- " Greek fe geeks” aay tyfe hve bsioh fe the process of: converting one of dada dojo type. wuebic, UPSical characte), +R phograinming aut Ayr ige tg chatadler double fame “double” mug", "Sb" Hoyer charcter ASSIGNMENT - | 2> ag -loticalt) : ee YB pesult 2- As ledical (xy) pint Uresul +) cab nak O13 PAlsé ae das ~ dada! 7 gles 2 cCialr/qo", "02/29/92", gl nada" , 00/28/92") resull 2-48. vabe (dakes in xduy") pent (result ) oubegl £0 \9qo 0-29, 1992-02-27, Lions ter deta of puclure « Yaqgn -ot-l4%, 1992-09 ag" a version fon > Aschbe flamet> azelat Ce (lols %b 'e')s ele" te CGY) pant (x) yeas. oa flame (x) print (y) ou pal coral 'b! ay"e" Fi ge Pe er c-a--b 6 --e -- f---G—6 ~h—-i---s ' Qa r ASSIGNMENT -! f | oy AssvedorO y lec (acl b=2) en tex) Oe = As. veetor(#) 7 pxnt ly) : : te ; md 12 Ps ds. toa fy dD ubday (dab. lable) ye dale boble (A= letter fxs, o¥ShS Y= blo) print ly) Z £-AS. malty (1) print (2) wed: A xy i irq ' 4 : ab 2 * . i ac $By sy, wa 44 cud von ome "Gt pe 5 10 fag nbn am to "e788" nay nai" Ney Ely TD yyy "6" lo” fs,1 ASSIGNMENT -1 (3) viewh hamed “ abreete ———— i R is obredt oented eshich mean Ae At experts fo find aime things te deal with th gaine 07 Lh ehamp| Ple | if conduching on expreiment ard cabieding ade fang ebvelal sameles want to aeake several name deta prect in R ih ordet wok th the th do ana lysis tebey on. she Leoesing example show a feu ol” dale lf Crent ual 8 cheale named items : answer ,-934lt iat Pi, Impdete = yead csv Ue «cheese re) Sample. = el 2819138 HH) 3 Viewing Previously teaded ‘hang obrects!. : A way Eo see whant & coTeds ave avat lable sto do this “se the isc) reninand like so 18() : view?ng All obTects." “The 750) command list all the named stems ele he Natlable the tesult of the “co Pand sted ih R od. the Ubbe nt mome nt VSO) sie . £0 “apnswe ,"" ty data" "sample 1" fe wi ynatchihg hame!- Viewing only Imakching hai : Tr emit the. display the obzects with certaih hae 8 ake is especialy help cf traf dbo eloead, ink ASSIGNMENT by by 9YMI R a gente 5 you. ean Limit the dtspley patter {oy pratch Gy exaroples s > 28 patterh ='b' cra “bave" “beetle” ” ve" ELE bete” Lb] vpfaln” myzel! "bie + eca" “biomass “ nba” fy everything cobtatng ov “y+ Here the Patterh looks ‘4 by add nig this 7s phetly bpoad go you ¢ah Heling moke charters . \ +26 Cpatterh =! be’) |" belle cca" wheat of bela” pow the pabterh Pies up obtes ithe hame- TL yous want qo search fo seride eed with a Hoth letler you ‘chatader tikese De (pattern - ‘ab! ) i £1)" bavet bell lee eon! * blames’ "bird! ob" bP sum bee", 1 bio rca! Mbiamoes” Mbps” cd “bf be" bast 1 bak " buck stim! eonsdeh the {ollecoihg eval tbdanh Ab!) £1" bave% (za! “beter fi‘! bake" "heetle . roo wbela” "bf. ne 3 s i i fs with "be" ih i cel ' bE alin ere" "bie-cea’ “biomass” " bipl’” : CVA "bps ry gt " belt “bud-" bak dpe ) 5 DL ef tee ee tenv' ASSIGNMENT -1 | TsCatterh = ‘Ab/re! ) the ple seal i. (same dimes called a ripe) chatacteh 6 rd for te seakch Lr. obrects bei%hihg i with "bY lok) beginihg with te" te Find obredls ending with « specific chavacley Use 4 dollak sh at the end tke $0! S38 Cpatterh = ‘m') coy bE /imt bu balin” Cbh Glen! 4 depipha!” pal dm Lust ahi", fsbo : fsb samy cad whl" wrin} «Lin! tha} Lr gle” dhe phied a wild cakd and & will we coh Use natch any chataclet:, | : 7s (ralterh > Nave!) : g eee "deta" ngales” "gales -{rare” ngales fs" " wale” i Li) "ee aree © Lb] gales: be" als Crabferh= ‘a') oo ha b-est . 1 dyea eben a ASSIGNMENT -1 Removing obie ds fom Re i LS Semeve obiects eo memoky and therefore Pprvmentiy delete “them asind The bm 15(-0t): i bemevel) eotarands. To hemove pbrects can atmply List “the by th . 3 tm asd) temove Cust) we ean type the hames of the obtects ee km Canswel, “Ky dels i Sample ) This be moves +h | 5 € obTects ahswets, psamele fhm the work space my-dabo , and

You might also like