search for: col_1

Displaying 8 results from an estimated 8 matches for "col_1".

Did you mean: col1
2010 Sep 06
1
combining collumns for data.frames
...age1 stage2 stage3 stage4 T1 0 0 1 1 T2 0 1 1 0 T3 0 0 0 1 T4 1 0 0 0 >data2 # this is a library file, it contains all possible values of stage (Col_1) that may be contained in the data1 file (headers of each column), and what they correspond to # in the Col_2 ie stages 1:2 == Group1 Col_1 Col_2 Stage1 Group1 Stage2 Group1 Stage3 Group2 Stage4 Group2 I want to get R to combine the columns in data1 based...
2023 Jun 04
2
Adding a numeric class to a data.frame
...elp Community How do I add a numeric class to a data .frame. For example, I have calculated the following probabilities 1 2 3 0.0011566127 0.0009267028 0.0081623324 How would I add them back into my data.frame for example My_df <- data.frame(col_1 = c('A', 'B', 'C')) such that I end up with col_1 col_2 A 0.0011566127 Though I could use a cbind. Jeff [[alternative HTML version deleted]]
2012 Aug 02
1
Joining R Local Dataset with Table from Database
...t to join a table (Dataset) that is created in R with a table that is in oracle database. Can some one help me in accomplishing this task in R? Example Code: library(RODBC) DB_CONNECT <- odbcConnect("DSN_NAME") TABLE_JOIN <- sqlQuery(DB_CONNECT, "SELECT * FROM DB_TABLE WHERE COL_1 NOT IN (SELECT COL_1 FROM DATA_SET_R) ") Regards, Madana -- View this message in context: http://r.789695.n4.nabble.com/Joining-R-Local-Dataset-with-Table-from-Database-tp4638967.html Sent from the R help mailing list archive at Nabble.com.
2024 Apr 18
1
Tidyverse/dplyr solution for filling values of a tibble/dataframe from a column with a nested list.
...) 005 [[1]](1,0.1) Basically, each list contains a set of doubles, with the first indicating a specific index (based on the 0 beginning python? index), and a certain value (e.g. 0.5). What I would like to do is generate set of columns based on the rang of unique indexes of each nested list. e.g.: col_1, col_2, col_3, col_4, col_5? Which I have done with the following: tibble[paste0("col_", 1:5)] <- 0 ?And then replace each 0 with the value (second number in the nested list), based on the index (first number in each nested list), for each row of the tibble. I wrote a function to sp...
2006 Jun 08
7
How to make an OSX Finder in rails/AJAX?
I need to make a category browser that would allow nested categories. Is there any receipe on that? Currently, I use the :onchange event from one of the form element to update the first select (out of 4-5 selects), but I dont know how to elegantly reset all the child selects if I change the value from the first. All the categories are fetched from the DB and I would like a
2017 Oct 09
2
Incluir símbolo matemático en data frame
...se deba mostrar , es decir: ? Manuel El 9 de octubre de 2017, 1:46, Carlos Ortega <cof en qualityexcellence.es> escribió: > Puedes incluir estos signos en una columna nueva antes de cada una de las > columnas numéricas. > Que el data.frame tuviera esta pinta... > > Signo_1, Col_1, Signo_2, Col_2, Signo_3, Col_3 > "<=", 0.3, ">=", 0.5, "==", 0.8 > ">=", 0.8, "<", 0.9, ">", 1 > .... > > Gracias, > Carlos. > > El 9 de octubre de 2017, 4:02, Manuel Spínola <mspinola10 en gmail....
2017 Oct 09
2
Incluir símbolo matemático en data frame
Estimados miembros de la lista, Cómo se puede incluir. por ejemplo, el símbolo de menor o igual en un data.frame para luego hacer un cuadro (table con kable in rmarkadown)? columna1 <- c("a", "b", "c") columna2 <- c(<= 0.3, 0.5, 0.8) columna3 <- c(>=0.5, 0.6, 0.9) cuadro <- data.frame(columna1, columna2, columna3) kable(cuadro) Manuel --
2017 Oct 09
2
Incluir símbolo matemático en data frame
...> El 9 de octubre de 2017, 1:46, Carlos Ortega <cof en qualityexcellence.es> > escribió: > > > Puedes incluir estos signos en una columna nueva antes de cada una de las > > columnas numéricas. > > Que el data.frame tuviera esta pinta... > > > > Signo_1, Col_1, Signo_2, Col_2, Signo_3, Col_3 > > "<=", 0.3, ">=", 0.5, "==", 0.8 > > ">=", 0.8, "<", 0.9, ">", 1 > > .... > > > > Gracias, > > Carlos. > > > > El 9 de octubre de 2017, 4:02,...