Displaying 12 results from an estimated 12 matches for "anti_join".
2018 Jun 16
2
Comparar variables fecha formato POSIXct
...l date
en ambos dataframe tiene el formato dmy_hms.
Los dataframe tienen diferente número de filas. dataframe contaminantes
contiene 175247 filas y el dataframe meteorología 175321.
Quiero saber cuáles son los valores de la variable date que son distintos
en ambos dataframe.
He usado la función anti_join de dplyr dándome el siguiente error
anti_join(meteorologia$date,contaminantes$date)
Error in UseMethod("anti_join") :
no applicable method for 'anti_join' applied to an object of class
"c('POSIXct', 'POSIXt')"
También he empleado el paquete sqldf...
2018 Aug 14
1
R CMD check warnings on Windows
...html
* installing *source* package 'bujar' ...
** package 'bujar' successfully unpacked and MD5 sums checked
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods '[.fun_list', '[.grouped_df', 'all.equal.tbl_df', 'anti_join.data.frame', 'anti_join.tbl_df', 'arrange.data.frame', 'arrange.default', 'arrange.grouped_df', 'arrange.tbl_df', 'arrange_.data.frame', 'arrange_.tbl_df', 'as.data.frame.grouped_df', 'as.data.frame.rowwise_df', 'as.dat...
2018 Jan 28
2
Newbie wants to compare 2 huge RDSs row by row.
The anti_join from the package dplyr might also be handy.
install.package("dplyr")
library(dplyr)
anti_join (x1, x2)
You can get help on the different functions by ?function.name(), so
?anti_join() will bring you help - and examples - on the anti_join
function.
It might be worth testing your approac...
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
...4.8 1.8 virginica
What's not show here is that the colored output (supported by many
terminals these days) also highlights exactly which elements in those
rows differ.
/Henrik
On Sun, Jan 28, 2018 at 12:17 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote:
> The anti_join from the package dplyr might also be handy.
>
> install.package("dplyr")
> library(dplyr)
> anti_join (x1, x2)
>
> You can get help on the different functions by ?function.name(), so
> ?anti_join() will bring you help - and examples - on the anti_join
> function.
&...
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...4.8 1.8 virginica
What's not show here is that the colored output (supported by many
terminals these days) also highlights exactly which elements in those
rows differ.
/Henrik
On Sun, Jan 28, 2018 at 12:17 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote:
> The anti_join from the package dplyr might also be handy.
>
> install.package("dplyr")
> library(dplyr)
> anti_join (x1, x2)
>
> You can get help on the different functions by ?function.name(), so
> ?anti_join() will bring you help - and examples - on the anti_join
> function.
&...
2020 Apr 28
3
Stopwords: Topic modelling con LDA
...nta es, ¿incluiríais estas palabras que me aparecen en todos los
topics o casi todos como stopwords? ¿Hay alguna forma de refinar más el
análisis y que haya más diferencias entre topics?
Este es el código que estoy usando:
Reviews_dtm <-text_df12star %>%
unnest_tokens(word, text) %>%
anti_join(stop_words)%>%
count(Brand, word) %>%
cast_dtm(Brand, word, n)
Reviews_lda <- LDA(Reviews12_dtm, k = 15, control = list(seed = 2016))
Un saludo
Miriam
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
Cool, looks like that'd do it, almost as if converting an entire record to a character string and comparing strings.
-- M. B. Hardy, statistician
work: Applied Research Associates, S. E. Div.
8537 Six Forks Rd., # 6000 / Raleigh, NC 27615-2963
(919) 582-3329, fax: 582-3301
home: 1020 W. South St. / Raleigh, NC 27603-2162
(919) 834-1245
2020 Nov 04
1
Eliminar números de texto
Buenas,
Estoy analizando texto en R y no encuentro cómo eliminar los números y
símbolos del texto como ",", "%", etc.
Estoy pasando este código, text_data es donde está el texto en la variable
"text".
tidy_data <- text_data%>%
unnest_tokens(word, text)%>%
anti_join(stop_words)
¿Cómo podría añadirse a ese código?
Muchas gracias
2018 May 02
0
Merging dataframes
Hi,
I'll coded your example into R code:
Table_A <- c('abc at gmail.com', 'John Chan', '0909')
Table_A <- rbind(Table_A, c('bcd at yahoo.com', 'Tim Ma', '89089'))
colnames(Table_A) <- c('Email', 'Name', 'Phone')
Table_A
Table_B <- c('abc at gmail.com', 'John Chan', 'M',
2020 Apr 29
2
[Posible SPAM] Re: Stopwords: Topic modelling con LDA
...gt; topics o casi todos como stopwords? Hay alguna forma de refinar más el
>> análisis y que haya más diferencias entre topics?
>>
>> Este es el código que estoy usando:
>>
>> Reviews_dtm <-text_df12star %>%
>> unnest_tokens(word, text) %>%
>> anti_join(stop_words)%>%
>> count(Brand, word) %>%
>> cast_dtm(Brand, word, n)
>>
>>
>> Reviews_lda <- LDA(Reviews12_dtm, k = 15, control = list(seed = 2016))
>>
>> Un saludo
>>
>> Miriam
>>
>> ____________________________________...
2018 Jan 27
2
Newbie wants to compare 2 huge RDSs row by row.
If your two objects have class "data.frame" (look at class(objectName)) and
they
both have the same number of columns and the same order of columns and the
column types match closely enough (use all.equal(x1, x2) for that), then
you can try
which( rowSums( x1 != x2 ) > 0)
E.g.,
> x1 <- data.frame(X=1:5, Y=rep(c("A","B"),c(3,2)))
> x2 <-
2018 May 02
2
Merging dataframes
Thanks - Peter, Eivind, Rui
Sorry, I perhaps could not explain it properly in the first go.
Trying to simplify it here with an example - Say I have two dataframes as
below that are NOT equally-sized data frames (i.e., number of columns are
different in each table):
Table_A:
Email Name Phone
abc at gmail.com John Chan 0909
bcd at yahoo.com Tim Ma