Re: [R] create a table in the console!!

2009-08-18 Thread jim holtman
> # not sure what you want your data to look like, but > # one alternative is to create a dataframe: > > x <- data.frame("GWP_Max"=20, + No_GWPMax= 8, + "[0-1000]"= 4, + "[1000-3000]"= 3, + "[> 3000]"= 5, check.names=FALSE) > t(x) # transpose for output [,1] GWP_Max

[R] create a table in the console!!

2009-08-18 Thread Inchallah Yarab
HI I want to do a table with R (in the console) GWP_Max NumberOfPolicies No_GWPMax 8 [0-1000] 4 [1000-3000] 3 [> 3000] 5 i begin by calculate the number of policies in each class :  Data1 <- read.csv2("c:/Total1.csv", sep=",") > Data2 <- read.csv2("c:/GWPMax1.csv",sep=",")[1:20,1:2] > M <