Skip to content

Ex10_submit_Xiyuan_Guan#6

Open
xyguan15 wants to merge 1 commit into
qtran4:mainfrom
xyguan15:main
Open

Ex10_submit_Xiyuan_Guan#6
xyguan15 wants to merge 1 commit into
qtran4:mainfrom
xyguan15:main

Conversation

@xyguan15
Copy link
Copy Markdown

No description provided.

Comment thread exercise10.R
ball$time <- as.numeric(ball$time)
ball$sumscore[ball$team=="UW"] <- cumsum(ball$score[ball$team=="UW"])
ball$sumscore[ball$team=="MSU"] <- cumsum(ball$score[ball$team=="MSU"])

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the for loop and if-else statement

Copy link
Copy Markdown
Owner

@qtran4 qtran4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants