Displaying 20 results from an estimated 10000 matches similar to: "adding a name to cross tab margins"
2011 Apr 07
3
Correlation Matrix
Listers,
I have a question regarding correlation matrices. It is fairly straight
forward to build a correlation matrix of an entire data frame. I simply use
the command cor(MyDataFrame). However, what I would like to do is construct
a smaller correlation matrix using just three of the variable out of my data
set.
When I run this:
cor(MyDataFrame$variable1,
2006 Jun 29
2
zero.print in print.table after adding margins
The function addmargins() adds margins to a table, but returns a matrix.
But even after converted to a table the print.zero="." option of
print.table() does not work:
> x <- sample( 1:7, 20, replace=T )
> y <- sample( 1:7, 20, replace=T )
> tt <- table( x, y )
> tx <- as.table( addmargins( table( x, y ) ) )
> print( tt, zero.print="." )
y
x 1 2
2006 Jun 29
2
zero.print in print.table after adding margins
The function addmargins() adds margins to a table, but returns a matrix.
But even after converted to a table the print.zero="." option of
print.table() does not work:
> x <- sample( 1:7, 20, replace=T )
> y <- sample( 1:7, 20, replace=T )
> tt <- table( x, y )
> tx <- as.table( addmargins( table( x, y ) ) )
> print( tt, zero.print="." )
y
x 1 2
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
2011 Oct 19
1
hypothetical prediction after polr
Dear R-Help listers,
I am trying to estimate an proportional odds logistic regression model
(or ordered logistic regression) and then make predictions by
supplying a hypothetical x vector. However, somehow this does not
work. I guess I must have missed something here. I first used the polr
function in the MASS package, and I create a data frame and supply it
to the predict function (see below):
2009 May 31
1
Bug in gmodels CrossTable()?
Is the code below showing a bug in Crosstable()? My expectation was that
the values produced by xtabs were rounded instead of truncated:
library(gmodels)
abc <- c("a", "a", "b", "b", "c", "c")
def <- c("d", "e", "f", "f", "d", "e")
wgt <- c(0.8, 0.6, 0.4, 0.5, 1.4, 1.3)
2007 Oct 02
2
Calculating proportions from a data frame rather than a table
When one has raw data it is easy to create a table of one variable against
another and then calculate proportions
For example
a.nice.table<-table(a,b)
prop.table(a.nice.table,1)
However, I looked at several papers and created a data frame of the
aggregate data. That means I acually created a table except it is a data
frame. The first column lists the name of the first author and the year.
I
2018 Jun 02
2
encoding argument of source() in 3.5.0
In R 3.5.0 using the `encoding' argument of source() prevents loading
files from the internet; without the `encoding' argument files can be
loaded from the internet, but if they contain non-ascii characters,
these are not correctly displayed under MS-Windows (but they are
correctly displayed under GNU/Linux). With R 3.4.{2,3,4} there is no
such problem: using `encoding' the files are
2004 Oct 03
3
Making a 'joint distribution'?
Suppose I make two discrete variables --
> D <- data.frame(f1=sample(1:5,100,replace=T), f2=sample(1:5,100,replace=T))
I know I can do:
> table(D$f1, D$f2)
0 1 2 3 4
0 5 5 5 5 4
1 4 2 6 7 3
2 5 3 5 3 6
3 3 1 3 1 2
4 6 4 3 3 6
> table(D$f1)
0 1 2 3 4
24 22 22 10 22
> table(D$f2)
0 1 2 3 4
23 15 22 19 21
which is all great. But how do I produce the
2018 Jun 04
3
encoding argument of source() in 3.5.0
>>>>> peter dalgaard
>>>>> on Sun, 3 Jun 2018 23:51:24 +0200 writes:
> Looks like this actually comes from readLines(), nothing
> to do with source() as such: In current R-devel (still):
>> f <- file("http://home.versanet.de/~s-berman/source2.R", encoding="UTF-8")
>> readLines(f)
> character(0)
2011 Nov 14
2
[LLVMdev] llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float
The buildbot @ http://lab.llvm.org:8011/builders/llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float/builds/850 is failing with following assertion failure. Is it possible for someone to collect a preprocessed source file and file a PR ?
Thanks,
-
Devang
cc1: /opt/buildslave/osuosl/slave/llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float/llvm.src/lib/CodeGen/LiveIntervalAnalysis.cpp:713: bool
2018 Jun 04
2
encoding argument of source() in 3.5.0
On R 3.5.0 (Mac)
The issue appears when using the default (libcurl) method and specifying the encoding
Note that using method='internal' causes a segfault if used in conjunction with encoding. (and works when encoding is not set)
urlR <- "http://home.versanet.de/~s-berman/source2.R"
# works
url_default <- url(urlR)
scan(url_default, "")
# Read 7 items
# [1]
2017 Oct 13
2
make check Error: could not get timezone
I just built the latest R-patched from source (SVN-Revision: 73548, Last
Changed Date: 2017-10-12) and the build completed without a problem but
`make check' errored out:
running code in 'reg-tests-1d.R' ...make[3]: *** [Makefile.common:100: reg-tests-1d.Rout] Error 1
make[3]: Leaving directory '/sources/R-patched/tests'
make[2]: *** [Makefile.common:275: test-Reg] Error
2011 Nov 14
0
[LLVMdev] llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float
Hello Devang,
Please find attached the preprocessed source file and the LLVM
bitecode. Hope this will help.
Thanks
Galina
On Mon, Nov 14, 2011 at 9:48 AM, Devang Patel <dpatel at apple.com> wrote:
> The buildbot
> @ http://lab.llvm.org:8011/builders/llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float/builds/850
> is failing with following assertion failure. Is it possible for
2011 Nov 15
2
[LLVMdev] llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float
I filed PR 11378.
Thanks!
-
Devang
On Nov 14, 2011, at 1:27 PM, Galina Kistanova wrote:
> Hello Devang,
>
> Please find attached the preprocessed source file and the LLVM
> bitecode. Hope this will help.
>
> Thanks
>
> Galina
>
>
>
> On Mon, Nov 14, 2011 at 9:48 AM, Devang Patel <dpatel at apple.com> wrote:
>> The buildbot
>> @
2017 Oct 14
0
make check Error: could not get timezone
On Fri, 13 Oct 2017 22:36:48 +0200 Stephen Berman <stephen.berman at gmx.net> wrote:
> I just built the latest R-patched from source (SVN-Revision: 73548, Last
> Changed Date: 2017-10-12) and the build completed without a problem but
> `make check' errored out:
>
> running code in 'reg-tests-1d.R' ...make[3]: *** [Makefile.common:100:
> reg-tests-1d.Rout]
2006 Feb 14
1
addmargins
> addmargins(UCBAdmissions, FUN = list(Total=sum))
works with no problems, but consider:
> myFUN <- list(Total=sum)
> addmargins(UCBAdmissions, FUN = myFUN)
Error in "names<-.default"(`*tmp*`, value = "") :
names() applied to a non-vector
Is this a bug?
> R.version
_
platform i386-pc-mingw32
arch i386
os mingw32
system
2006 Jun 26
4
Can rsync monitor a file system?
I am trying to get two servers to copy each others data to the other
server.
I need it to be done real time a not use a cron.
Can rsync running as a daemon monitor the files system to trigger a
transmission?
If so how do I configure it?
I am running Solaris 9.
Thank you.
______________________
Charles Berman
Senior Unix Administrator
"Think Globally"
The contents of this email
2017 Oct 14
2
make check Error: could not get timezone
Off topic. Read the Posting Guide.
--
Sent from my phone. Please excuse my brevity.
On October 14, 2017 11:02:50 AM GMT+01:00, Stephen Berman <stephen.berman at gmx.net> wrote:
>On Fri, 13 Oct 2017 22:36:48 +0200 Stephen Berman
><stephen.berman at gmx.net> wrote:
>
>> I just built the latest R-patched from source (SVN-Revision: 73548,
>Last
>> Changed Date:
2005 Jan 11
6
Installing * on fedora 3
G'Day List,
Can someone help me out a bit please.
I just installed Fedora Core 3 on a Dell Power Edge 400 SC and am trying
to install *
I am following
http://www.voip-info.org/wiki-Asterisk+Step-by-step+Installation
After running:
cd /usr/src/asterisk
make clean
make
make install
make samples
The instructions says:
Configuring Asterisk
- Login to your server as user