Questions tagged [col]

A vertical line of cells in a spreadsheet, SQL table, HTML table, or similar structure.

A vertical line of cells in a spreadsheet, SQL table, HTML table, or similar structure.Abbreviation of column. Most common used with that meaning in HTML tables because of the COL tag.

407 questions
227
votes
9 answers

How can I convert row names into the first column?

I have a data frame like this: df VALUE ABS_CALL DETECTION P-VALUE 1007_s_at "957.729231881542" "P" "0.00486279317241156" 1053_at "320.632701283368" "P" "0.0313356324173416" 117_at …
Agaz Wani
  • 5,514
  • 8
  • 42
  • 62
58
votes
1 answer

Write a data frame to csv file without column header in R

I would like to store the contents of my data frame into a .csv file without the names of columns. I use the following piece of code, write.csv(cur_data,new_file, row.names = F, col.names=F) The resulting file looks like…
Amm
  • 1,749
  • 4
  • 17
  • 27
39
votes
5 answers

Cols, colgroups and css ":hover" pseudoclass

I'm trying to create a table to display an individual's BMI. As a part of this, I'd like, on :hover, for the and (or ) to be highlighted also, in order for the intersection to be more apparent. As the table will feature both…
David Thomas
  • 249,100
  • 51
  • 377
  • 410
37
votes
4 answers

Count number of columns by a condition (>) for each row

I am trying to work out for each row of a matrix how many columns have values greater than a specified value. I am sorry that I am asking this simple question but I wasn't able to figure it out. I have extracted maximum temperature values from a…
Adam
  • 1,147
  • 3
  • 15
  • 23
28
votes
2 answers

Converting rows into columns and columns into rows using R

I have a dataframe with unique row names and unique column names. I want to convert the rows into columns and column into rows. For example, this code: starting_df <- data.frame(row.names= c(LETTERS[1:4]), a = c(1:4), …
Christopher Bottoms
  • 11,218
  • 8
  • 50
  • 99
24
votes
6 answers

Is html deprecated?

i'm looking at the W3Schools demo of using the element to align columns: …
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
24
votes
2 answers
and , and if so, why and how?
I've been trying to use properly the colgroup and the col tags but I don't get it. I read the specification and all that but I don't understand its purpose or how to implement it.
Roger G. Zapata
  • 361
  • 1
  • 3
  • 10
20
votes
4 answers

Why is styling table columns not allowed?

W3 specifies that only four CSS rules are allowed for table columns (with the
element) - border, background, width and visibility. Does anyone know the reasons behind this decision? If you can have borders and backgrounds, why not fonts and…
DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290
18
votes
6 answers

Table Column Formatting

I'm trying to format a column in a
ISBN Title Price
using a element. I can set background-color, width, etc., but can't set the font-weight. Why doesn't it work?
Andy
  • 1,264
  • 1
  • 10
  • 16
13
votes
1 answer

What is the parameter "index" in Pandas.DataFrame.rename method?

Pandas DataFrame has a rename method which takes a parameter named "index." I don't understand the description of the parameter in the documentation: DataFrame.rename Specifically, I'm using it like the example on the documentation web…
user3731622
  • 4,844
  • 8
  • 45
  • 84
9
votes
1 answer

Bootstrap 4.0 Grid System Layout not working

I'm trying to do a layout with bootstrap, but I can't figure it out what I'm doing wrong. I'm putting two columns of 6 and the second column of 6 I'm putting 2 columns of 3 inside, but it's not working. I'm new to bootstrap. Here is the…
bfaria
  • 153
  • 1
  • 1
  • 8
sahar
  • 1,769
  • 3
  • 13
  • 14
6
votes
4 answers

Removing both row and column of partial NA value

I have the following dataframe (s): s<-read.table(text = "V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 0 62 64 44 NA 55 81 66 57 53 2 0 0 65 50 NA 56 79 69 52 55 3 0 0 0 57 NA 62 84 76 65 59 4 0 0 0…
Avi
  • 2,247
  • 4
  • 30
  • 52
6
votes
3 answers

Split one row after every 3rd column and transport those 3 columns as a new row in r

I have a data frame which is a result of another command. This data frame has only one row with around 40000 entries. My problem is that 3 columns are one connected set of data. Therefore I want to split the row after every third column and…
Tobias
  • 564
  • 3
  • 13
5
votes
3 answers

How to use class attribute in html col

This is my code:
123
456