Displaying 20 results from an estimated 9000 matches similar to: "cross tabulation for frequency distributions"
2009 Aug 11
3
How to Import Excel file into R 2.9.0 version
Hi Every one,
I have a problem with Reading Excel file into R 2.9.0 version. In older
versions it is working with "xlsReadWrite" package. But in 2.9.0 version
there is no package like that. so help me out in this aspect.
Thanks in Advance.
--
View this message in context: http://www.nabble.com/How-to-Import-Excel-file-into-R-2.9.0-version-tp24914638p24914638.html
Sent from the R help
2009 Aug 20
3
print selected variables
Hi every one,
I read one excel external file into R, in that R dataset i have 20
variables. now my querry is i want to print only selected variables (eg:10
variables) with complete data. pls send me the code it will be very helpful
for us.
Thanks in Advance.
--
View this message in context: http://www.nabble.com/print-selected-variables-tp25057378p25057378.html
Sent from the R help mailing list
2009 Aug 18
4
Transpose a dataset
Hi Everyone,
I have a dataset like this
mean sd 0% 25% 50%
75% 100% n
BODY TEMPERATURE 36.41099 0.4015699 35.1 36.22222 36.5
36.66667 37.1 89
DIASTOLIC BLOOD PRESSURE 73.60079 9.4656186 50.0 67.00000 73.0
80.00000 95.0 253
HEIGHT 171.94000 9.2011670 153.5 166.50000 173.0
176.25000 190.0
2009 Aug 25
3
how to apply a date format for data frame
Hi Everyone,
i have a data frame like this
labels starts ends priorities
1 firsttask 37987 38049 1
2 secondtask 38019 38112 2
3 thirdtask 38049 38144 3
4 fourthtask 38081 38207 4
5 fifthtask 38112 38239 5
now i want to apply a date format for the two variables they are "starts"
and "ends".
please help in this
2009 Feb 27
1
cross tabulation: convert frequencies to percentages
Hello,
might be rather easy for R pros, but I've been searching to the dead
end to ...
twsource.area <- table(twsource, area, useNA="ifany")
gives me a nice cross tabulation of frequencies of two factors, but
now I want to convert to pecentages of those absolute values. In
addition I'd like an extra column and an extra row with absolute sums.
I know, Excel or the
2009 Aug 21
2
gantt chart for dataset
hi,
Thanks for responding of gantt charts. but i have some problem regarding
with gantt charts. i.e.
Ymd.format <- "%Y/%m/%d"
Ymd <- function(x){ as.POSIXct(strptime(x, format=Ymd.format))}
gantt.info <- list(
labels =c("First task","Second task","Third task","Fourth task","Fifth
task"),
starts
2008 Jan 09
1
pairwise cross tabulation tables
Hi,
I have a huge number of categorical variables, say at least 10000, and I put
them into a matrix, each column is one variable. The question is: how can I
make all of the pairwise cross tabulation tables efficiently? The
straightforward solution is to use for-loops by looping two indexes on the
table() function, but it was just too slow. Is there a more efficient way to
do that? Any guidance
2008 Sep 29
3
Cross-tabulation Question
Hi R,
This is a cross tabulation question. Suppose that,
> d=read.table("clipboard",header=F)
> d
V1 V2 V3
A One Apple
A One Cake
A One Cake
B One Apple
B One Apple
B One Apple
> table(d$V2,d$V3)
Apple Cake
One 4 2
But, I don't want the count to be like the above. Here, it is counting
the
2009 Sep 01
2
numerical summaries across variables.
Hi Every one,
I have a dataframe "class" with "name", "sex", "age", "height", "Weight".
if i caluclate summary statistics with the below code
numSummary(class[,c("Height", "Weight")], groups=class$Name,
statistics=c("mean", "sd", "quantiles"), quantiles=c(0,
.25,.5,.75,1))
iam getting
2009 Aug 24
3
error in creating gantt chart.
hi every one,
i have a excel sheet like this
labels starts ends
1 first task 1-Jan-04 3-Mar-04
2 second task 2-Feb-04 5-May-04
3 third task 3-Mar-04 6-Jun-04
4 fourth task 4-Apr-04 8-Aug-04
5 fifth task 5-May-04 9-Sep-04
now i converted this excel sheet into csv file and i read the csv file into
R with the below code.
my.gantt.info<-read.csv("C:/Documents and
2008 Jan 23
3
How to do more advanced cross tabulation in R?
Hi,
I am trying to reproduce some functionalities of Excel pivot table in R,
sadly, I couldn't figure out how to do it. I am wondering if this is even
possible in R. Does anyone know?
Here is an example:
year=rep(2003,16)
quarter=rep(1:4,each=4)
sales=1:16
company=rep(c("a","b","c","d"),4)
df=data.frame(year,quarter,sales,company) #this is the
2009 Aug 17
1
Display the character variables in a dataset in R
Hi everyone,
After reading the external file into R it will become a R dataset. Now my
querry is i want to dispaly only character variables from that dataset.
please help me in this aspect. if possible send me the code. it will be very
helpful for us.
Thank you in Advance.
--
View this message in context:
2002 Feb 26
1
Cross-tabulation of data from database
I am quite new to R, so please bear over with me if I have problems with the
R terminology.
I want to (try to) use R for some analyses within vegetation ecology, using
the vegan package. I have my data in a postgresql database, and I manage to
get them into R as a dataframe with columns for respectively: Name of the
analysed m2, Name of the species, coverage of species in the square in %. I
2010 Sep 08
5
Newbie cross tabulation issue
hi, i'm new in R and i need some help. Please, ¿do you know a function how
can process cross tables for many variables and show the result in one table
who look like this?:
+----------------------------------------------------+
|------------------ | X variable |
|----------------- | Xop1 | Xop2 | Xop3|.....|
+----------------------------------------------------+
|Yvar1 |
2007 Feb 22
1
Cross-tabulations next to each other
I have the following relatively simple problem. Say we have three
factors, and we want to create a cross-tabulation against each of the
other two:
x <- factor(rbinom(5, 1, 1/2))
y <- factor(rbinom(5, 1, 1/2))
z <- factor(rbinom(5, 1, 1/2))
table(x,y)
table(x,z)
This looks like:
y
x 0 1
0 2 0
1 1 2
z
x 0 1
0 1 1
1 2 1
I would like to get (surely this will
2002 Dec 02
1
advanced tabulation
i make me thoughts about a "advanced tabulation" package similar to
commercial software products like Quantum or Wincross.
Before i'm beginning to fight with coding - is in the mailing-List anybody
doing something similar in the past and have a good starting point
and/or suggestions for me ?
My purpose ist to define for a dataset headers (i.e. sex,age-groupes..)
which should
2011 Nov 01
0
package descr: create weighted cross tabulation
hello,
using the package "descr" i created a crosstab e.g.:
Table <- crosstab(age,question,weight=pond)
"age": being a variable that consists of the surveyed data of the ages of
children: the values are "6 years", "7 years" and "8 years".
"question": is a variable that consists of the answers of these children to
a question: the
2012 Mar 01
1
Need help using Melt and cast to compute correlation for a cross tabulation
I have a data frame with a number of observed and predicted values by
classification as shown below:
Count Volume FCLASS
1 55000 60000 Grade Separated
2 43000 39000 Grade Separated
3 26000 26500 Major Arterial
4 19500 20000 Major Arterial
...
There are four classes here: Grade Separated, Major Arterial, Minor
Arterial, and Collector
I am looking
2009 Oct 28
1
Aggregate and cross tabulation
R-helpers:
I have a data frame containing 4 factor variables (let's say A,B,C,
and D) and 1 numerical variable (N). I would like to produce a
cross-tabulated data frame in which A,B,C are individual columns, each
factor of D is its own column, and the field is calculated as a given
function of N (I would like to have two output data frames, one with the
mean(N) and one with the
2009 Feb 17
1
frequency table for multiple variables
Hi r-help!
Consider the following data-frame:
var1 var2 var3
1 3 1 4
2 2 2 3
3 2 2 3
4 4 4 NA
5 4 3 5
6 2 2 3
7 3 4 3
How can I get R to convert this into the following?
Value 1 2 3 4 5
var1 0 3 2 2 0
var2 1 3 1 2 0
var3 0 0 4 1 1
TIA,
--
Hans Ekbrand (http://sociologi.cjb.net) <hans at