search for: col_2

Displaying 7 results from an estimated 7 matches for "col_2".

Did you mean: col2
2010 Sep 06
1
combining collumns for data.frames
...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 on the information in data2 (Col_2), eg in this instance reduce the columns in data1 from 4 to 2, summing up the values w...
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
2024 Apr 18
1
Tidyverse/dplyr solution for filling values of a tibble/dataframe from a column with a nested list.
...[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 split eac...
2023 Jun 04
2
Adding a numeric class to a data.frame
...he 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]]
2017 Oct 09
2
Incluir símbolo matemático en data frame
..., 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.com> > esc...
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
...tubre 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...