View the step-by-step solution to:

R SCRIPT: ucla <- read.csv("ucla.csv",header=T) ucla$RESULT <- substr(as.character(ucla$Score),1,1) ucla$Score.mod...

This question was answered on Jan 22, 2014. View the Answer
I need help to fix the running errors of these r script, attached are the data in CSV format and the Rscript
R SCRIPT: ucla <- read.csv("ucla.csv",header=T) ucla$RESULT <- substr(as.character(ucla$Score),1,1) ucla$Score.mod <- substr(as.character(ucla$Score),3,nchar(as.character(ucla$Score))) ucla$Score.1 <- substr(ucla$Score.mod,1,-1+gregexpr(pattern="-",ucla$Score.mod)[[1]][1]) ucla$Score.2 <- substr(ucla$Score.mod,1+gregexpr(pattern="-",ucla$Score.mod)[[1]][1],nchar(ucla$Score.mod)) ucla$ACTUAL.DIFF <- as.numeric(ucla$Score.1) - as.numeric(ucla$Score.2) ucla$AWAY <- grepl("california",tolower(ucla$Vs)) ucla$GAMEDOW <- substr(ucla$Date,1,-1+gregexpr(pattern=" ",ucla$Date)[[1]][1]) ucla$GAMEDATE <- substr(ucla$Date,gregexpr(pattern=" ",ucla$Date)[[1]][1],nchar(as.character(ucla$Date))) keeps <- c("Date","Vs","Score","Week","UCLA.Line","O.U","RESULT","ACTUAL.DIFF","AWAY","GAMEDOW","GA MEDATE") ucla_updated <- ucla[keeps] write.csv(ucla_updated,"ucla_updated.csv",row.names=F)
Background image of page 1
Sheet1 Page 1 DATE OPPONENT RESULT PREDICTED SPREAD OU OU2 01/01/86 @ Iowa W 45-28 W 4 O 46.5 1 /23/85 @ Southern California L 13-17 L -7 N NA 1 /16/85 Oregon State W 41-0 W -31 N NA 09/1 /85 @ Arizona W 24-19 L -6 N NA 10/26/85 California W 34-7 W -14.5 U 47 10/19/85 @ Washington State W 31-30 L -7 N NA 12/10/85 @ Stanford W 34-9 W -10 U 55.5 05/10/85 Arizona State W 40-17 W -3 O 39.5 09/28/85 @ Washington L 14-21 L 1 U 42 09/21/85 San Diego State W 34-16 W -13 N NA 09/14/85 @ Ten es ee L 26-26 W 2.5 O 46 07/09/85 @ Brigham Young W 27-24 W 7 N NA 12/30/86 Brigham Young W 31-10 W -14.5 U 47 1 /22/86 Southern California W 45-25 W -4.5 N NA 1 /15/86 @ Washington L 17-17 W 3.5 U 44.5 08/1 /86 Stanford L 23-28 L -12 O 44.5 01/1 /86 @ Oregon State W 49-0 W -21 N NA 10/25/86 Washington State W 54-16 W -13.5 N NA 10/18/86 @ California W 36-10 W -15 N NA 1 /10/86 Arizona W 32-25 W -1 O 38.5 04/10/86 Arizona State L 9-16 L -7 U 42 09/20/86 @ San Diego State W 45-14 W -14 N NA 06/09/86 @ Oklahoma L 3-38 L 7 O 38 12/25/87 Florida W 20-16 L -8.5 U 48 1 /21/87 @ Southern California L 13-17 L -8 U 48.5 1 /14/87 Washington W 47-14 W -14 N NA 07/1 /87 @ Oregon State W 52-17 W -30 N NA 10/31/87 @ Arizona State W 31-23 W -7 O 45 10/24/87 California W 42-18 L -28.5 N NA 10/17/87 Oregon W 41-10 W -17 N NA 03/10/87 @ Stanford W 49-0 W -14 N NA 09/26/87 Arizona W 34-24 L -12 N NA 09/19/87 Fresno State W 17-0 L -34 N NA 12/09/87 @ Nebraska L 33-42 L 6.5 O 46 05/09/87 San Diego State W 47-14 W -17 N NA 02/01/89 @ Arkansas W 17-3 W -6 U 45 1 /19/88 Southern California L 22-31 L 1 O 46.5 12/1 /88 Stanford W 27-17 L -17 U 51.5 05/1 /88 @ Oregon W 16-6 L -14 N NA 10/29/88 Washington State L 30-34 L -19.5 O 58 10/22/88 @ Arizona W 24-3 W -9.5 U 48 10/15/88 @ California W 38-21 L -20.5 N NA 08/10/88 Oregon State W 38-21 L -28 N NA 01/10/88 @ Washington W 24-17 L -13 U 46.5 10/09/88 Nebraska W 41-28 W O 47 03/09/88 San Diego State W 59-6 W -25 N NA 1 /18/89 @ Southern California L 10-10 W 16.5 U 43 1 /1 /89 Oregon L 20-38 L 1.5 N NA 04/1 /89 @ Stanford L 14-17 L -5.5 N NA 10/28/89 Washington L 27-28 L -1 O 39.5 10/21/89 @ Oregon State L 17-18 L -1 .5 U 43 10/14/89 @ Arizona L 7-42 L O 35.5 07/10/89 Arizona State W 33-14 W -14.5 O 41 09/30/89 California W 24-6 W -16 N NA 09/23/89 Michigan L 23-24 W 6.5 O 41 09/16/89 @ San Diego State W 28-25 L -19.5 N NA 09/09/89 Ten es ee L 6-24 L -15.5 N NA 1 /17/90 Southern California L 42-45 W 5 O 51 10/1 /90 @ Washington W 25-22 W 20.5 U 54.5 03/1 /90 @ Oregon L 24-28 W 10 N NA 10/27/90 Oregon State W 26-17 L -22.5 U 55 10/20/90 @ California L 31-38 L -1.5 N NA 10/13/90 San Diego State W 45-31 W -1 O 67 06/10/90 Arizona L 21-28 L -3.5 O 45 09/29/90 @ Washington State W 30-20 W 1.5 U 53.5 09/22/90 @ Michigan L 15-38 L 14.5 O 45.5 09/15/90 Stanford W 32-31 L -5.5 O 40.5 08/09/90 Oklahoma L 14-34 L -1.5 O 41 12/31/91 Il inois W 6-3 L -7 U 44.5 1 /23/91 @ Southern California W 24-21 L -5 U 46 1 /16/91 Oregon W 16-7 L -19 U 44 09/1 /91 @ Stanford L 10-27 L -4 U 48 02/1 /91 Washington State W 44-3 W -14 U 52 10/26/91 @ Arizona State W 21-16 L -7.5 U 42 10/19/91 @ Oregon State W 44-7 W -28.5 O 46 12/10/91 Arizona W 54-14 W -14.5 O 48 05/10/91 California L 24-27 L -3.5 U 55 09/26/91 @ San Diego State W 37-12 W -8 U 56.5 09/14/91 @ Ten es ee L 16-30 L 7.5 U 51.5 07/09/91 Brigham Young W 27-23 L -5.5 U 65 1 /21/92 Southern California W 38-37 W 8 O 34 1 /14/92 @ Oregon W 9-6 W 10.5 N NA 07/1 /92 Oregon State W 26-14 P -12 N NA 10/31/92 @ California L 12-48 L 14 N NA 10/24/92 Arizona State L 0-20 L -2.5 U 34.5 10/17/92 @ Washington State L 17-30 L 6 O 41.5 10/10/92 Stanford L 7-19 L 3 U 37.5 03/10/92 @ Arizona L 3-23 L -6.5 U 38 09/26/92 San Diego State W 35-7 W -7 N NA 09/19/92 @ Brigham Young W 17-10 W 1 U 52.5 01/01/94 @ Wisconsin L 16-21 L -6.5 U 48.5 1 /20/93 @ Southern California W 27-21 W 1.5 O 45 1 /13/93 Arizona State L 3-9 L -1 U 49 06/1 /93 @ Washington State W 40-27 W -7.5 O 46 10/30/93 Arizona W 37-17 W -5.5 O 35.5 10/23/93 @ Oregon State W 20-17 L -20.5 N NA 10/16/93 Washington W 39-25 W -1.5 O 43 09/10/93 Brigham Young W 68-14 W -8 O 51 09/30/93 @ San Diego State W 52-13 W -4.5 O 53.5 09/25/93 @ Stanford W 28-25 W 3.5 O 45.5 09/18/93 Nebraska L 13-14 W 9 U 51.5 04/09/93 California L 25-27 L -3.5 O 45 1 /19/94 Southern California W 31-19 W 5 U 58 12/1 /94 @ Arizona State W 59-23 W -1 O 50 10/29/94 Stanford W 31-30 P -1 O 56 10/22/94 @ Arizona L 24-34 W 16 N NA 10/15/94 Oregon State L 14-23 L -7.5 U 42.5 08/10/94 @ California L 7-26 L 3 U 45 01/10/94 @ Washington L 10-37 L 12.5 O 45 09/24/94 Washington State L 0-21 L -7.5 N NA 09/17/94 @ Nebraska L 21-49 L 16 O 47.5 10/09/94 Southern Methodist W 17-10 L -24 N NA 03/09/94 Ten es ee W 25-23 W U 50 12/25/95 Kansas L 30-51 L -5 O 49 1 /18/95 @ Southern California W 24-20 W 7 U 50 1 /1 /95 Washington L 14-38 L -4.5 O 51 04/1 /95 @ Arizona State L 33-37 L -6.5 O 53 10/28/95 California W 33-16 W -14 O 46 10/21/95 @ Stanford W 42-28 W -3 O 50 10/14/95 Arizona W 17-10 L -7.5 U 40.5 09/30/95 Fresno State W 45-21 W -1 .5 O 53 09/23/95 @ Washington State L 15-24 L -5 U 41 09/16/95 Oregon L 31-38 L -6 O 41 09/09/95 @ Brigham Young W 23-9 W -12 U 49 02/09/95 Miami W 31-8 W 4 U 45 1 /23/96 Southern California W 48-41 W 3 O 47 1 /16/96 @ Arizona L 17-35 L 1.5 O 49 09/1 /96 Washington State W 38-14 W -4 U 54 02/1 /96 Stanford L 20-21 L -13 U 49 10/26/96 @ California W 38-29 W 2 N NA 10/19/96 @ Washington L 21-41 L 6.5 N NA 12/10/96 Arizona State L 34-42 L 5 O 52 05/10/96 @ Oregon W 41-22 W -4.5 N NA 09/28/96 @ Michigan L 9-38 L 8 O 43 09/14/96 UL Monroe W 44-0 W -31 N NA 07/09/96 @ Ten es ee L 20-35 W 18.5 U 56.5 01/01/98 Texas A&M W 29-23 L -14 U 54 1 /22/97 @ Southern California W 31-24 L -8 O 50 1 /15/97 Washington W 52-28 W -2.5 O 53 01/1 /97 @ Stanford W 27-7 W -6 N NA 10/25/97 California W 35-17 L -23.5 N NA 10/18/97 Oregon State W 34-10 W -23 N NA 1 /10/97 @ Oregon W 39-31 L -12 N NA 04/10/97 Houston W 66-10 W -26.5 N NA 09/27/97 Arizona W 40-27 W -8.5 O 48 09/13/97 @ Texas W 66-3 W 10 N NA 06/09/97 Ten es ee L 24-30 W 14.5 U 62 08/30/97 @ Washington State L 34-37 L 2.5 N NA 01/01/99 Wisconsin L 31-38 L -9 O 62 05/12/98 @ Miami L 45-49 L -10 O 63.5 1 /21/98 Southern California W 34-17 W -4.5 U 58 1 /14/98 @ Washington W 36-24 W -6.5 U 62 07/1 /98 @ Oregon State W 41-34 L -17 O 58 10/31/98 Stanford W 28-24 L -29 N NA 10/24/98 @ California W 28-16 L -14 U 53 10/17/98 Oregon W 41-38 x L -10 O 70.5 10/10/98 @ Arizona W 52-28 W -4.5 O 61 03/10/98 Washington State W 49-17 W -23.5 N NA 09/19/98 @ Houston W 42-24 L -26.5 N NA 12/09/98 Texas W 49-31 W -9 O 64 1 /20/99 @ Southern California L 7-17 L 5.5 U 53 1 /13/99 Washington W 23-20 x W 9 U 56 10/30/99 Arizona L 7-33 L 5 N NA 10/23/99 @ Oregon State L 7-55 L 1 N NA 10/16/99 California L 0-17 L -13 U 54 09/10/99 Oregon W 34-29 W -3.5 O 62 02/10/99 @ Arizona State L 27-28 L -1.5 U 59 09/25/99 @ Stanford L 32-42 L N NA 09/18/99 Fresno State W 35-21 L -22 N NA 1 /09/99 @ Ohio State L 20-42 L 12.5 O 51.5 04/09/99 Boise State W 38-7 W -26.5 N NA 12/29/00 @ Wisconsin L 20-21 W 6 U 55 1 /18/00 Southern California L 35-38 L -3 O 58.5 1 /1 /00 @ Washington L 28-35 W 7.5 O 58.5 04/1 /00 Stanford W 37-35 L -8 O 55.5 10/28/00 @ Arizona W 27-24 W 5 U 52 10/21/00 Oregon State L 38-44 L -3 O 54 10/14/00 @ California L 38-46 x L -10 O 44.5 09/30/00 Arizona State W 38-31 P -7 O 47 09/23/00 @ Oregon L 10-29 L 3.5 U 53.5 09/16/00 Michigan W 23-20 W 4 U 47.5 09/09/00 Fresno State W 24-21 L -14 N NA 01/09/00 Alabama W 35-24 W 7 O 53 01/12/01 Arizona State W 52-42 L -10.5 O 53 1 /17/01 @ Southern California L 0-27 L -3 U 46.5 10/1 /01 Oregon L 20-21 L -2.5 U 55 03/1 /01 @ Washington State L 14-20 L -3 U 56.5 10/27/01 @ Stanford L 28-38 L -9 O 56.5 10/20/01 California W 56-17 W -30.5 N NA 10/13/01 Washington W 35-13 W -13 O 47.5 09/29/01 @ Oregon State W 38-7 W -4 U 50 09/22/01 Ohio State W 13-6 P -7 U 45 08/09/01 @ Kansas W 41-17 W -12.5 O 51 01/09/01 @ Alabama W 20-17 W 2.5 U 45.5 12/25/02 New Mexico W 27-13 W -10 U 51.5 07/12/02 Washington State L 27-48 L -1 O 52.5 1 /23/02 Southern California L 21-52 L 5.5 O 52 09/1 /02 @ Arizona W 37-7 W -10.5 U 48 02/1 /02 @ Washington W 34-24 W 3 O 54 10/26/02 Stanford W 28-18 L -10.5 U 52.5 10/19/02 @ California L 12-17 L -3.5 U 61 12/10/02 Oregon L 30-31 L -2.5 O 54 05/10/02 @ Oregon State W 43-35 W 5.5 O 49 09/28/02 @ San Diego State W 43-7 W -14.5 U 56 09/21/02 Colorado L 17-31 L -1 .5 O 47 09/14/02 @ Oklahoma State W 38-24 W -7 O 48 07/09/02 Colorado State W 30-19 W -7 U 49.5 12/30/03 Fresno State L 9-17 L -3 U 43 1 /22/03 @ Southern California L 22-47 L 23.5 O 50.5 1 /15/03 Oregon L 13-31 L -3.5 U 47.5 08/1 /03 @ Washington State L 13-31 L 10.5 U 44.5 01/1 /03 @ Stanford L 14-21 L -6.5 U 40 10/25/03 Arizona State W 20-13 W -3 U 49 10/18/03 California P -3 U 49 1 /10/03 @ Arizona W 24-21 L -16.5 P 45 04/10/03 Washington W 46-16 W 1.5 O 46 09/27/03 San Diego State W 20-10 W -9.5 U 43 09/20/03 @ Oklahoma L 24-59 L 19 O 44.5 09/13/03 Il inois W 6-3 L -10 U 50.5 06/09/03 @ Colorado L 14-16 W 3 U 55 12/23/04 vs Wyoming L 21-24 L -12.5 U 57 04/12/04 Southern California L 24-29 W 21.5 U 63.5 1 /13/04 @ Oregon W 34-26 W 8.5 O 57.5 06/1 /04 Washington State L 29-31 L -14 O 53 10/30/04 Stanford W 21-0 W -5 U 53.5 10/23/04 @ Arizona State L 42-48 W 7.5 O 56 10/16/04 @ California L 28-45 W 17.5 O 58 09/10/04 Arizona W 37-17 W -9.5 O 44.5 02/10/04 San Diego State W 33-10 W -6 U 48 09/18/04 @ Washington W 37-31 W -1 O 49 1 /09/04 @ Il inois W 35-17 W -1.5 O 50 04/09/04 Oklahoma State L 20-31 L -1 O 46.5 12/30/05 vs Northwestern W 50-38 W -3 O 74 03/12/05 @ Southern California L 19-66 L 21 O 74.5 12/1 /05 Arizona State W 45-35 W -3 O 69 05/1 /05 @ Arizona L 14-52 L -9.5 O 56 10/29/05 @ Stanford L -7 U 65.5 10/22/05 Oregon State W 51-28 W -9 O 67.5 10/15/05 @ Washington State L -5 O 65.5 08/10/05 California W 47-40 W 1.5 O 59.5 01/10/05 Washington W 21-17 L -25 U 59.5 09/17/05 Oklahoma W 41-24 W -6.5 O 51 10/09/05 Rice W 63-21 W -26 O 56.5 03/09/05 @ San Diego State W 44-21 W -10 O 53.5 12/27/06 vs Florida State L 27-44 L -3.5 O 38 02/12/06 Southern California W 13-9 W 10.5 U 46.5 1 /18/06 @ Arizona State W 24-12 W 6 U 51.5 1 /1 /06 Oregon State W 25-7 W -1.5 U 47 04/1 /06 @ California L 24-38 W 18 O 51.5 10/28/06 Washington State L 15-37 L -1 O 43 10/21/06 @ Notre Dame L 17-20 W 12.5 U 49.5 10/14/06 @ Oregon L 20-30 L 9.5 U 53 07/10/06 Arizona W 27-7 W -1 U 41 09/30/06 Stanford W 31-0 W -22.5 U 49.5 09/23/06 @ Washington L 19-29 L -3 U 51 09/09/06 Rice W 26-16 L -27.5 U 56.5 02/09/06 Utah W 31-10 W -3 U 52.5 12/22/07 vs Brigham Young L 16-17 W 6 U 46 01/12/07 @ Southern California L 7-24 W 19.5 U 45.5 1 /24/07 Oregon W 16-0 W 2 U 51.5 10/1 /07 Arizona State L 20-24 W 7 U 52 03/1 /07 @ Arizona L 27-34 L O 49.5 10/27/07 @ Washington State L 7-27 L -5 U 55 10/20/07 California W 30-21 W 3 U 57 06/10/07 Notre Dame L 6-20 L -21 U 50 09/29/07 @ Oregon State W 40-14 W 3 O 52 09/22/07 Washington W 44-31 W -5 O 47 09/15/07 @ Utah L 6-44 L -15 O 44 08/09/07 Brigham Young W 27-17 W -8.5 U 47.5 01/09/07 @ Stanford W 45-17 W -16.5 O 45 06/12/08 Southern California L 7-28 W 32 U 47 1 /28/08 @ Arizona State L 9-34 L 9.5 U 44 1 /15/08 @ Washington W 27-7 W -6.5 U 46.5 08/1 /08 Oregon State L 6-34 L 7.5 U 48 10/25/08 @ California L 20-41 L 18 O 50.5 10/18/08 Stanford W 23-20 W 2.5 U 45.5 1 /10/08 @ Oregon L 24-31 W 19 P 55 04/10/08 Washington State W 28-3 W -16 U 54.5 09/27/08 Fresno State L 31-36 W 7 O 48.5 09/20/08 Arizona L 10-31 L 3.5 U 51.5 09/13/08 @ Brigham Young L 0-59 L 8.5 O 50.5 01/09/08 Ten es ee W 7 O 46 12/29/09 vs Temple W 30-21 W -4 O 44 1 /28/09 @ Southern California L 7-28 L 13 U 46.5 1 /21/09 Arizona State W 23-13 W -5.5 U 41 1 /14/09 @ Washington State W 43-7 W -17.5 O 48 07/1 /09 Washington W 24-23 L -5.5 U 51.5 10/31/09 @ Oregon State L 19-26 W 10 U 48 10/24/09 @ Arizona L 13-27 L 7.5 U 50 10/17/09 California L 26-45 L 3.5 O 44 10/10/09 Oregon L 10-24 L 3 U 44 03/10/09 @ Stanford L 16-24 L 5 U 45 09/19/09 Kansas State W 23-9 W -1 U 44.5 12/09/09 @ Ten es ee W 19-15 W 10.5 U 46.5 05/09/09 San Diego State W 33-14 W -18 O 46.5 04/12/10 Southern California L 14-28 L 6.5 U 52 1 /26/10 @ Arizona State L 34-55 L 13 O 49 1 /18/10 @ Washington L 7-24 L 2 U 51 06/1 /10 Oregon State W 17-14 W 4 U 53 10/30/10 Arizona L 21-29 L 7.5 O 46.5 10/21/10 @ Oregon L 13-60 L 26.5 O 60.5 09/10/10 @ California L 7-35 L 8 U 49 02/10/10 Washington State W 42-28 L -23.5 O 48 09/25/10 @ Texas W 34-12 W 15.5 O 43 09/18/10 Houston W 31-13 W 3.5 U 66 1 /09/10 Stanford L 0-35 L 5.5 U 52 04/09/10 @ Kansas State L 22-31 L 1 O 44.5 12/31/1 vs Il inois L 14-20 L 2.5 U 46 02/12/1 @ Oregon L 31-49 W 31 O 66.5 1 /26/1 @ Southern California L 0-50 L 16 U 56.5 1 /19/1 Colorado W 45-6 W -1 U 55.5 12/1 /1 @ Utah L 6-31 L 7 U 45 05/1 /1 Arizona State W 29-28 W 8.5 O 56 10/29/1 California W 31-14 W 4.5 U 51 10/20/1 @ Arizona L 12-48 L 5 U 61.5 08/10/1 Washington State W 28-25 L -4 U 59.5 01/10/1 @ Stanford L 19-45 L 22.5 O 56.5 09/24/1 @ Oregon State W 27-19 W 4.5 U 52.5 09/17/1 Texas L 20-49 L 3.5 O 46.5 10/09/1 San Jose State W 27-17 L -20.5 U 49 03/09/1 @ Houston L 34-38 L 1.5 O 59 12/27/12 vs Baylor L 26-49 L -3 U 82 1 /30/12 @ Stanford L 24-27 W 9.5 O 47.5 1 /24/12 Stanford L 17-35 L 2.5 O 50 1 /17/12 Southern California W 38-28 W 4 O 64.5 10/1 /12 @ Washington State W 44-36 L -16.5 O 61.5 03/1 /12 Arizona W 66-10 W -2.5 O 72 10/27/12 @ Arizona State W 45-43 W 6 O 59.5 10/13/12 Utah W 21-14 L -9.5 U 51.5 06/10/12 @ California L 17-43 L -2.5 O 55.5 09/29/12 @ Colorado W 42-14 W -19.5 U 59 09/22/12 Oregon State L 20-27 L -8 U 52 09/15/12 Houston W 37-6 W -17.5 U 75 08/09/12 Nebraska W 36-30 W 3.5 O 58.5 08/30/12 @ Rice W 49-24 W -16.5 O 60 12/31/13 vs Virginia Tech W 42-12 W -7 O 45 1 /30/13 @ Southern California W 35-14 W 4.5 U 52.5 1 /23/13 Arizona State L 33-38 L 3 O 61.5 1 /15/13 Washington W 41-31 W -3 O 61 09/1 /13 @ Arizona W 31-26 W 1.5 U 60.5 02/1 /13 Colorado W 45-23 L -30 O 59 10/26/13 @ Oregon L 14-42 L 23.5 U 75 10/19/13 @ Stanford L 10-24 L 4.5 U 55 12/10/13 California W 37-10 W -26.5 U 73.5 03/10/13 @ Utah W 34-27 W -5 U 64.5 09/21/13 New Mexico State W 59-13 W -44 O 66.5 09/14/13 @ Nebraska W 41-21 W 1.5 U 71.5 08/31/13 Nevada W 58-20 W -20.5 O 68 W 23-20 x W 30-27 x W 4 -41 x W 27-24 x
Background image of page 1
Sign up to view the entire interaction

Top Answer

I think this will help u ... if u need explanation of any one of them..then Ask...there are many... View the full answer

course hero.docx

ucla &lt;- read.csv(&quot;ucla.csv&quot;,header=T)
ucla$Score1.array &lt;- array(1:348, dim=c(348,1))
for (i in 1:348){
ucla$Score1.array[i]=substr(ucla$RESULT[i],3,4)
}
ucla$Score2.array &lt;-...

This question was asked on Jan 21, 2014 and answered on Jan 22, 2014.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards