Creating New Row
Title
Question
input
captaincy <- rbind(captaincy,
data.frame(names= "Kohli",
y=2016,
played=30,
won=20,
lost=9,
victory=20/30
)
)
View(captaincy)
data.frame(names= "Kohli",
y=2016,
played=30,
won=20,
lost=9,
victory=20/30
)
)
View(captaincy)
Output
<pre class="GNKRCKGCGSB" id="rstudio_console_output" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 15px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" tabindex="0"><span><span class="GNKRCKGCASB ace_constant" style="color: rgb(197, 6, 11);">Error in match.names(clabs, names(xi)) : names do not match previous names</span></span></pre>
R Operations-on-Matrices-and-Data-Frames 10-11 min 10-20 sec
Answers:
input
captaincy <- rbind(captaincy,
data.frame(names= " aniki",
y=2019,
played=30,
won=20,
lost=9,
victory=20/30
)
)
data.frame(names= " aniki",
y=2019,
played=30,
won=20,
lost=9,
victory=20/30
)
)
View(captaincy)
Output
<pre class="GNKRCKGCGSB" id="rstudio_console_output" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 15px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" tabindex="0"><span><span class="GNKRCKGCASB ace_constant" style="color: rgb(197, 6, 11);">Error in match.names(clabs, names(xi)) : names do not match previous names</span></span></pre>
Login to add comment