questions/data-science
Use melt() to reshape your data with total as a factor ...READ MORE
You can map the facetting variable to ...READ MORE
You can use the as.factor() function for ...READ MORE
Well, you are right in saying that ...READ MORE
In order to remove numbering on x-axis ...READ MORE
Hi@DataKing99, You can create one function according to ...READ MORE
Hi, Try like this. train = sample(x = ...READ MORE
You can use the rm() function to ...READ MORE
You can use distinct() function along with ...READ MORE
You can use the select_if() function from ...READ MORE
You can use drop function in your ...READ MORE
Hi, I'm not sure about the command but you ...READ MORE
You can use cat() instead of writeLines(): ...READ MORE
Use geom_text , with aes label. You ...READ MORE
Yes, this possible by using groupby function ...READ MORE
plot(variable, type='o' , pch=5, cex=.3) The pch argument ...READ MORE
You can use IMHO: for ind in df.index: ...READ MORE
You can try using match: data <- data.frame(alphabets=letters[1:4], ...READ MORE
There are several solutions to this. One of ...READ MORE
The major difference is "size" includes NaN values, ...READ MORE
You can use the rename function in ...READ MORE
The easiest way that I could suggest ...READ MORE
R's way of printing a zero length ...READ MORE
You can use the theme layer to ...READ MORE
Yes, both matrix and data.frame are multidimensional ...READ MORE
Reduce(intersect, list(a,b,c)) READ MORE
The function distinct() in the dplyr package ...READ MORE
The %in% operator tells which elements are ...READ MORE
You can use grepl on the names ...READ MORE
You can give this a try. subset(dataframe, is.na(dataframe$col2)) ...READ MORE
Easy and simple: library("rjson") json_file <- "file_name" json_data <- fromJSON(file=json_file)) or ...READ MORE
Use of period separator e.g. product.prices <- c(12.01, ...READ MORE
The variables declared inside a function are ...READ MORE
It is easy by using readline readline(prompt="Press any ...READ MORE
One line that removes all objects except for functions: rm(list ...READ MORE
To set global variables, you can use ...READ MORE
.libPaths() // You can use this command ...READ MORE
set.seed(seed) Set the seed of R‘s random number ...READ MORE
Hello team, you can use na.omit x <- c(NA, 3, ...READ MORE
First way: rd<-readChar("temp.txt",file.info("temp.txt")$size) ...READ MORE
> trial.table.df <- as.data.frame(trial.table) //assuming that trial.table ...READ MORE
To change the font size of text ...READ MORE
Easily by: write.csv(df, "temp.csv", row.names=FALSE) READ MORE
Suppose your DataFrame is named as df: write.csv(df,file="exmp.csv") Then ...READ MORE
## import_multiple_csv_files_to_R # Purpose: Import multiple csv files ...READ MORE
Hi, You can get a count of all ...READ MORE
For randomly sampling a row/cell where a ...READ MORE
You can match on something like X=X ...READ MORE
You can use sessionInfo() to accomplish that. > ...READ MORE
trimws {base} //Remove Leading/Trailing Whitespace Removes leading and/or ...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.