Skip to content

Commit

Permalink
seq_along nrow data reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
iramosgutierrez committed Jan 11, 2024
1 parent c85b8a6 commit a4ca11d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/certificate_attendance.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ create_certificate_attendance <- function(

data <- as.data.frame(data) ## to exploit drop = TRUE when selecting cols below

for (i in seq_along(nrow(data))) {
for (i in 1:nrow(data)) {
out.name <- filename
out.name <- paste0(out.name, "_", data[i, name.column])
output_file <- paste0(out.name, '.pdf')
Expand Down
2 changes: 1 addition & 1 deletion R/certificate_participation.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ create_certificate_participation <- function(

data <- as.data.frame(data) ## to exploit drop = TRUE when selecting cols below

for (i in seq_along(nrow(data))) {
for (i in 1:nrow(data)) {
out.name <- filename
out.name <- paste0(out.name, "_", data[i, name.column], "_",
gsub("/","-", data[i, date.column]))
Expand Down
2 changes: 1 addition & 1 deletion R/herbarium.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ create_herbarium_label <- function(data = data,
data <- as.data.frame(data) ## to exploit drop = TRUE when selecting cols below
bl.char <- rep("~", times = nrow(data))

for (i in seq_along(nrow(data))) {
for (i in 1:nrow(data)) {
data[is.na(data[,i]), i] <- "~"
}

Expand Down

0 comments on commit a4ca11d

Please sign in to comment.