Displaying 7 results from an estimated 7 matches similar to: "print.data.frame : row.name = FALSE not having intended effect"
2008 Sep 26
3
Newbie: Ranking a data frame, grouped by 2 or more columns
Hi,
I'd like to rank obs in a data frame as subset by 2 or more columns...
The example input would look like the following:
====+====+====+====+
x y v
-- -- --
a w 200
a w 100
b w 500
b w 200
b z 300
b z 400
====+====+====+====+
And the data frame I want to create is below:
====+====+====+====+
x y v rank
-- -- -- ----
a w 200 1
a w 100 2
2008 Sep 22
1
Hmisc and Ubuntu (aptitude install)
Hi,
I'm trying to get the Hmisc module on my Ubuntu Hardy Heron install.
I tried getting Hmisc from within R by issuing the standard
'install.packages' command, but it said I needed 'gfortran' to
compile. I thought I could circumvent this by using 'aptitude' to get
the package 'r-cran-hmisc', but when I got it, the package had
critical missing parts (got
2008 Sep 23
1
Newbie: Formatting numbers with commas
Hi,
Search through the R archives, and couldn't find my answer... how do
you format numbers with commas (standard American, one every three
digits)?
Thanks,
Matt
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
2008 Sep 18
1
Reporting with down and across variables
Hi,
I have a dataframe like the following:
xfact yfact zfact response
------- ------- ------- --------------
x1 y1 z1 r1
x1 y1 z2 r2
...
I want output that looks like:
___ zfac levels___
xfact yfact z1 z2 ... zn
------- ------- ---- ---- ... ----
x1 y1 r1 r2 rn
....
How can I go about
2008 Sep 25
2
Equivalent of 'first.var' or 'last.var' from SAS in R?
Hi,
I want to sort a data frame by multiple columns and then take the
first record in each unique level of the "by" group I used to sort the
data frame. Does someone have an example of how to do this?
Thanks,
Matt
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
2008 Sep 12
2
Newbie: 'table' output in columns rather than matrix
Hi,
Coming to R from SAS...
I have a data.frame A with 2 long factors "x" and "y". I want to get
a count of the number of rows with each level of "x" and "y" jointly.
'table' seemed like it would work, but as I have many levels, the
matrix output is pretty useless to me (and I don't care about zero
values). How can I get output that looks
2008 Sep 22
1
R-help Digest, Vol 67, Issue 23
Warranty on Accuracy, Precision, Legality, ... of R in Research
(These questions may well have been raised.)
What is the implied warranty of using R for research & publications, consulting, etc.?
Alternately, how does one obtain such a warranty?
Your answers will be much appreciated.
Perhaps you can point me to some websites which discussed this subject in the past.
Thanks & regards