columns

Renaming rows and columns in R

I'm running the following script: cause = c(1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2); time = c(1, 1, 2, 3, 3, 2, 2, 1, 1, 2, 2); table(cause, time) And I get the following:           time cause 1 2 3        1 2 2 2        2 2 3 0 What I want is this:                time      cause 1 2 3   Maltreat 2 2 2 Non-Maltr 2 3 0 So, my questi...

mysql too many columns?

I'm creating a table with 30-50 columns. There are about 200K of these rows. Is it recommended to store this data in separate tables? Are there performance issues when you have this many columns. I'll explain a bit about the table. I have to store all sports games over the past 10 years (basketball, baseball, football, hockey). Fo...

How to make a columns in JTable Invisible for Swing Java

Hello, I have designed one GUI in which I have used one JTable from which I have to make 2 columns invisible . How should I do that ? ...

Latex/Beamer, column environment. Horizontal alignment of overlays

I am trying to prepare a presentation using beamer. I want to have two columns that walkthrough some algebraic manipulations. On the left an explanation of the steps taken, on the right the results. \documentclass{beamer} \begin{document} \begin{frame}[t] Not in a column \begin{columns}[t] \begin{column}{0.5\textwidt...

How can I clean up misaligned columns in text?

I have a C program that outputs two columns, utterly misaligned. The reason for the misalignment is lengths of words in the first column are very different. I have an output file opened in vi. How do I quickly align these two columns? I am fine with using awk, perl, sed, and not just vi (7.2) toolset. Also, can we have a generic soluti...

Can you edit all columns in a table using phpMyAdmin?

In phpMyAdmin, like the create table view with a spreadsheet of column settings, can you edit a table's columns with new columns, as a similar spreadsheet? ...

vim left and right column highlight

I need to highlight anything beyond column 72 with a different background color. What's the best method? Something similar to a visible line margin that some editors do is also good. Is it possible? Some background: The syntax is a Pascal like, and works correctly. Only the Background needs to change. The foreground is already hig...

(x)html/css: list items distributed in columns

Hi all, Is there a way, with the help of CSS, to let a single list (ul or ol) behave like this: 1. 4. 7. 2. 5. 8. 3. 6. 9. In other words, have their subsquent elements be distributed in columns? ...

Aligning columns without WPF Grid

I am looking for a good way to design a multi-column layout which reflows the controls in the columns according to the space available. I have a list of labels and fields which display information, and sometimes the view they are contained in needs to be tall and skinny, other times short and wide. A simple solution is to use a WrapPane...

CSS - Faux columns with background color instead of repeating background image?

Greetings, I have a two-column (floated) layout set up where the columns need to "look" like they have matching heights. The "shorter" column has a background color, and needs to look like it's the same height as the main content column that expands to fit its contents. I know that it's relatively easy to implement this layout by appl...

how to allow user to order columns with wxListCtrl in report mode

with wxListCtrl, how to allow the user to rearrange the column order at runtime ? just like in windows. Tnx, Vertilka ...

JDBC DatabaseMetaData.getColumns() returns duplicate columns

I'm busy on a piece of code to get alle the column names of a table from an Oracle database. The code I came up with looks like this: DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); Connection conn = DriverManager.getConnection( "jdbc:oracle:thin:@<server>:1521:<sid>", <username>, <password>); DatabaseMetaData m...

Columns with CSS without using multiple divs?

I want to get 4 columns, with the text floating in all of them. I don't want to make 4 separate divs, because when the first column if full of text, the text should continue in the next column. I also want to set the width of each column and the padding between. Additionally, the height should be flexible, depending on how much text th...

event on selecting columns in jqGrid

Is there an event in jqGrid when a user uses the column dialog to add or remove columns. If not, is there another way to track column change. I need this to persist selected columns when I show the grid on different pages. ...

SQL comparing set of information in a column

Hey all, I'm having a difficult time wording this properly which is why im having trouble finding an answer online, so the best I can do is give an example. I have the following database table: ACTORNAME SERIESNAME ------------------------------ ------------ baldwin found baldwin ...

Gridview design: How do I split the gridview so it does not take full width of page?

Hi, I have a gridview control in my c# program which currently has 12 columns and 2 rows (1 row being the header). Is it possible to split the 12 columns so I have 6 columns and 2 rows and then below that another 6 columns and rows so it doesn't take up the full width of the page? Thank you. My gridview: <asp:GridView ID="GridView1" H...

Rails: define column names to model

I have an existing database(Postgresql). How can i create models from it? How can i pass column names for Rails? As if something like this: Person: Name :table_name_for_name_attribute Surname :table_name_for_surname_attribute PersonalCode :table_name_for_perconal_code_attribute Unfortunately, my database is not following Rails convent...

iPhone + UITableView with multiple columns

Hi, I want to display a UITableView with Multiple Columns. The first column will have some text and another column will have a button, click of button will navigate to some another view. ...

Layout problems in IE7

Our website www.phototulip.com displays fine in Safari and Firefox but not in IE7. The main content seems to display on the bottom right hand side and the nav bar shifts slightly to the left. I've tried to adjust sidebar and content widths but with no success. I was wondering if anyone could help. ...

C# - ListView columns on left side?

Is there a way to set the columns to be on the left of side of a listview instead of on the top? Thanks. ...