54353/summarize-with-a-condition
You can provide condition to summarize using summarize_if() function.
Syntax of summarizze_if function is as below.
summarize_if(condition, function)
ex:
summarise_if(is.numeric, sum, na.rm=TRUE)
Try this. lapply(a,function(x){ifelse(is.na(x),mean(a,na.rm = TRUE ...READ MORE
With the help of Dplyr: rename function ...READ MORE
We can easily use this command as.data.frame(lapply(d1, "length< ...READ MORE
Yes, purrr does provide a package called ...READ MORE
Basically here we are making an equation ...READ MORE
By assuming that all the values are ...READ MORE
For avoiding rowwise(), I prefer to use ...READ MORE
Basically all we have to do is ...READ MORE
Write R code as below temp = data ...READ MORE
Use dplyr function group_by(). > n = as.data.frame(num) > ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.