It is possible to write ASCII text representation of an R object with the use of dput, dump, dget and source. And with this it is possible to preserve the class information
saving the file
to save the file use the dget and/or dump function, and to make sure that the file preserve the class information use the argument control = "all&...
The best way to achieve this would be to save the data as an R data file using either save() or saveRDS():
# option 1
# option 2
df <- readRDS("data2.Rds")
This doesn't seem like a great task for regex--even your pattern would miss very close typos like COWID-19 or potential OCR mistakes like C0VID-I9. Instead, I'd suggest using the stringdist package to do fuzzy matching, perhaps stringdist::afind to find approximate matches of "COVID-19". You can read a bit about it here.
This will let you select ...
Wouldn't remove similar looking observations unless you have a strong reason to do so. By deleting similar looking observations you may be adding bias into the underlying distribution responsible for generating the data.
Your model may be misled into learning a biased distribution and that may affect final performance.
To start with use the entire dataset as ...
Below are two functions using my favorite packages:
The first one shows a scatterplot of every column against the target column
The second one shows the correlation of every column with the target column, with confidence intervals (I found how to do that with ggplot here).
scatterplot <- function(...
xgboost_set <- param_set(list(learn_rate(range = c(0.01,0.3), trans = NULL),
trees(range = c(200,1000), trans = NULL), #trees(): The number of trees contained in a random forest or boosted ensemble. In the latter case, this is equal to the number of boosting iterations
Would something like this work? I simply add an extra column that indicates the row number (which is later used as the x-axis) to make sure all values are displayed as a new point instead of plotting on top of each other for the same day. I then specifiy the custom x ticks and labels by selecting the first row for each day and get the row number (which ...
It was only a matter of transform string numbers in numerical numbers.
I did it by transforming each "non numeric" column in character and used the as.numeric().
The code looks like this now:
#Nomes das colunas
names(df) = 'Produçãox1'
names(df) = 'Produçãox2'
names(df) = 'Remuneraçãoy1'
names(df) = 'Remuneraçãoy2'