Please enable JavaScript.
Coggle requires JavaScript to display documents.
Cleaning Data (Sample selection (sample(nrow(dFName), 20) - 20 random rows…
Cleaning Data
Sample selection
sample(nrow(dFName), 20) - 20 random rows
ex <- DfName %>% sample_n(20, replace = TRUE) - 20 random rows selected
Replace - not gonna change data + sample with replacement
ex <- DfName[sample(nrow(DfName),20), ]
ex <- MD %>% sample_frac(0.01,replace=TRUE) - sample 1% of data
-
-
-
Adding to table
Use mutate in dplyr for columns
eg data1 <- mutate(data, new_col = x_col + y_col,
new_col2 = new_col/60 ...)
-
-