Questions tagged [r-table]

R has a table function which creates a matrix-like object.

R has a table function which creates a matrix-like object, but using [table] as a tag alone is deprecated because it is so general a term as to be meaningless.

35 questions
0
votes
2 answers

Long to Wide and Duplicate Column when Row has Data

Wondering how others might tackle this challenge. Background Data is for vegetation monitoring. It includes basic per plot info and identifies the species and % cover for those species. There are several rows of plot specific information - date,…
NWdev
  • 483
  • 1
  • 6
  • 19
0
votes
1 answer

R: Color cells in a table based on the given value

I have a table with the numbers 1-10. It looks like this: Now I want to fill the cells with a different color for each integer. For Example all cells with the value 1 should be red, 2 black.. and so on. Have you any suggestions how to achieve…
0
votes
1 answer

How to rearrange data in r

I am not able to rearrange my data in R. I am using following code. data_1=read.table(file="filename.csv",sep=",") I am getting... Month Open High Low Close April-2015 27954.86 29094.61 26897.54 27011.31 …
Sanjeev Shinde
  • 63
  • 1
  • 3
  • 14
0
votes
2 answers

Combining three sets of data in R

I have made two table with the following code: load(url("http://bit.ly/dasi_gss_data")) pres<-table(gss$year,gss$confed) emp<-table(gss$year,gss$joblose) I am trying to now combine these two tables and keep all rows and columns in which the year is…
0
votes
2 answers

how to arrange a table of a variable in ascending order in R and draw a bar-chart

I have created a table from my dataframe(no.out) using only 1 variable(DX_2_CD). > counts <- table(no.out$DX_2_CD) > counts Blood CirculatorySystems Congenital Digestive Genitourinary 7 …
Madhumita
  • 489
  • 1
  • 7
  • 15
1 2
3