Skip to content

Commit

Permalink
fix styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jun 8, 2024
1 parent 06ff8f3 commit 59d24e9
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 14 deletions.
1 change: 0 additions & 1 deletion R/categorize.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ categorize.grouped_df <- function(x,
regex = FALSE,
verbose = TRUE,
...) {

grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

attr_data <- attributes(x)
Expand Down
1 change: 0 additions & 1 deletion R/data_arrange.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ data_arrange.default <- function(data, select = NULL, safe = TRUE) {

#' @export
data_arrange.grouped_df <- function(data, select = NULL, safe = TRUE) {

grps <- attr(data, "groups", exact = TRUE)
grps <- grps[[".rows"]]

Expand Down
2 changes: 1 addition & 1 deletion R/data_duplicated.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ data_duplicated.grouped_df <- function(data,
verbose = verbose
)


grps <- attr(data, "groups", exact = TRUE)
grps <- grps[[".rows"]]

Expand Down
2 changes: 1 addition & 1 deletion R/data_modify.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ data_modify.grouped_df <- function(data, ..., .if = NULL, .at = NULL, .modify =
# the data.frame method later...
dots <- match.call(expand.dots = FALSE)[["..."]]


grps <- attr(data, "groups", exact = TRUE)
grps <- grps[[".rows"]]
attr_data <- attributes(data)
Expand Down
2 changes: 1 addition & 1 deletion R/data_rescale.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ rescale.grouped_df <- function(x,
...) {
info <- attributes(x)


grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

# evaluate arguments
Expand Down
2 changes: 1 addition & 1 deletion R/data_reverse.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ reverse.grouped_df <- function(x,
...) {
info <- attributes(x)


grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

# evaluate arguments
Expand Down
1 change: 0 additions & 1 deletion R/data_tabulate.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ data_tabulate.grouped_df <- function(x,
collapse = FALSE,
verbose = TRUE,
...) {

grps <- attr(x, "groups", exact = TRUE)
group_variables <- data_remove(grps, ".rows")
grps <- grps[[".rows"]]
Expand Down
2 changes: 1 addition & 1 deletion R/data_unique.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ data_unique.grouped_df <- function(data,
verbose = verbose
)


grps <- attr(data, "groups", exact = TRUE)
grps <- grps[[".rows"]]

Expand Down
2 changes: 1 addition & 1 deletion R/normalize.R
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ normalize.grouped_df <- function(x,
)

info <- attributes(x)

grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

# when we append variables, we call ".process_append()", which will
Expand Down
2 changes: 1 addition & 1 deletion R/ranktransform.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ ranktransform.grouped_df <- function(x,
verbose = TRUE,
...) {
info <- attributes(x)

grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

# evaluate arguments
Expand Down
2 changes: 1 addition & 1 deletion R/unnormalize.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ unnormalize.grouped_df <- function(x,
)

info <- attributes(x)

grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

x <- as.data.frame(x)
Expand Down
2 changes: 1 addition & 1 deletion R/unstandardize.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ unstandardize.grouped_df <- function(x,

info <- attributes(x)


grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

x <- as.data.frame(x)
Expand Down
2 changes: 1 addition & 1 deletion R/utils-rows.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ rowid_as_column.grouped_df <- function(x, var = "rowid") {
paste0("There is already a variable named `", var, "` in your dataset.")
)
}

grps <- attr(x, "groups", exact = TRUE)
grps <- grps[[".rows"]]

Expand Down
2 changes: 1 addition & 1 deletion R/utils_standardize_center.R
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
}

info <- attributes(x)

grps <- attr(x, "groups", exact = TRUE)[[".rows"]]

# for grouped data frames, we can decide to remove group variable from selection
Expand Down

0 comments on commit 59d24e9

Please sign in to comment.