Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26589db

Browse files
committed
changed cat to message and corrected a last cat that should have been a stop
1 parentcfa335d commit26589db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎R/vms_clean.R‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ vms_clean <- function(path_to_data) {
6767
empty_coordinates<-x|>
6868
dplyr::filter(is.na(.data$latitude))|>
6969
dplyr::filter(is.na(.data$longitude))
70-
cat(paste0("Cleaned:", print(nrow(empty_coordinates))," empty rows from data!\n"))
70+
message(paste0("Cleaned:", print(nrow(empty_coordinates))," empty rows from data!\n"))
7171
res
7272
}elseif (is.data.frame(path_to_data)==TRUE) {
7373
x<-path_to_data
@@ -107,10 +107,10 @@ vms_clean <- function(path_to_data) {
107107
)|>
108108
dplyr::filter(is.na(.data$latitude))|>
109109
dplyr::filter(is.na(.data$longitude))
110-
cat(paste0("Cleaned:", print(nrow(empty_coordinates))," empty rows from data!\n"))
110+
message(paste0("Cleaned:", print(nrow(empty_coordinates))," empty rows from data!\n"))
111111
res
112112
}else {
113-
cat("Data must be a path to folder or data.frame object\n")
113+
stop("Data must be a path to folder or data.frame object\n")
114114
}
115115
)
116116
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp