Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ali Gaynor #13

Open
gaynora7 opened this issue Mar 31, 2021 · 0 comments
Open

Ali Gaynor #13

gaynora7 opened this issue Mar 31, 2021 · 0 comments

Comments

@gaynora7
Copy link

n <- 10
mydat <- data.frame(exam_1 = rnorm(n, 70, 15),
                    exam_2 = rnorm(n, 86, 5),
                    exam_3 = rnorm(n, 68, 13)
                    )

mydat$lowest_exam = apply(mydat, 2, min) 
#> Error in `$<-.data.frame`(`*tmp*`, lowest_exam, value = c(exam_1 = 44.2655608330996, : replacement has 3 rows, data has 10

Created on 2021-03-30 by the reprex package (v0.3.0)

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

No branches or pull requests

1 participant