Displaying 8 results from an estimated 8 matches for "xytabl".
Did you mean:
xytable
2023 Apr 25
2
xyTable(x,y) versus table(x,y) with NAs
Hi all,
Posted this many years ago (https://stat.ethz.ch/pipermail/r-devel/2017-December/075224.html), but either this slipped under the radar or my feeble mind is unable to understand what xyTable() is doing here and nobody bothered to correct me. I now stumbled again across this issue.
x <- c(1, 1, 2, 2, 2, 3)
y <- c(1, 2, 1, 3, NA, 3)
table(x, y, useNA="always")
xyTable(x, y)
Why does xyTable() report that there are NA instances of (2,3)? I could understand the logic th...
2023 Apr 25
1
xyTable(x,y) versus table(x,y) with NAs
x <- c(1, 1, 2, 2, 2, 3)
y <- c(1, 2, 1, 3, NA, 3)
> str(xyTable(x,y))
List of 3
$ x : num [1:6] 1 1 2 2 NA 3
$ y : num [1:6] 1 2 1 3 NA 3
$ number: int [1:6] 1 1 1 NA NA 1
How many (2,3)s do we have? At least one, the third entry, but the fourth
entry, (2,NA), is possibly a (2,3) so we don't know and make the count NA.
I suspect this is not t...
2023 Apr 25
1
xyTable(x,y) versus table(x,y) with NAs
...4/2023 ? 10:24, Viechtbauer, Wolfgang (NP) a ?crit?:
>> Hi all,
>>
>> Posted this many years ago
>> (https://stat.ethz.ch/pipermail/r-devel/2017-December/075224.html),
>> but either this slipped under the radar or my feeble mind is unable
>> to understand what xyTable() is doing here and nobody bothered to
>> correct me. I now stumbled again across this issue.
>>
>> x <- c(1, 1, 2, 2,? 2, 3)
>> y <- c(1, 2, 1, 3, NA, 3)
>> table(x, y, useNA="always")
>> xyTable(x, y)
>>
>> Why does xyTable() repor...
2023 Apr 25
1
xyTable(x,y) versus table(x,y) with NAs
Le 25/04/2023 ? 10:24, Viechtbauer, Wolfgang (NP) a ?crit?:
> Hi all,
>
> Posted this many years ago (https://stat.ethz.ch/pipermail/r-devel/2017-December/075224.html), but either this slipped under the radar or my feeble mind is unable to understand what xyTable() is doing here and nobody bothered to correct me. I now stumbled again across this issue.
>
> x <- c(1, 1, 2, 2, 2, 3)
> y <- c(1, 2, 1, 3, NA, 3)
> table(x, y, useNA="always")
> xyTable(x, y)
>
> Why does xyTable() report that there are NA instances of (2,3)...
2017 Dec 12
0
xyTable(x,y) versus table(x,y) with NAs
Hi All,
It seems to me that xyTable() gets thrown off by NAs:
x <- c(1, 1, 2, 2, 2, 3)
y <- c(1, 2, 1, 3, NA, 3)
table(x, y, useNA="always")
xyTable(x, y)
Is this intended behavior?
Best,
Wolfgang
2009 Mar 19
0
sunflowerplot error
...fails:
### sample: start ###
set.seed(20)
a <- c(letters[1:4])
z <- c(letters[23:26])
fa <- factor(sample(rep.int(a, 1000), 100, replace=T), levels=a,
ordered=T)
fz <- factor(sample(rep.int(z, 1000), 100, replace=T), levels=z,
ordered=T)
sunflowerplot(fa, fz)
# okay, but:
r <- xyTable(fa, fz)
length(r$x)==length(r$y)
length(r$x)==length(r$number)
# TRUE, TRUE
is.na(fa) <- sort(sample(1:100, 3))
sunflowerplot(fa, fz)
# Error in rep.int(i.multi, number[number > 1]) : invalid 'times' value
s <- xyTable(fa, fz)
length(s$x)==length(s$y)
length(s$x)==length(s$number)...
2007 Oct 03
1
R-2.6.0 is released
...in.metafile() and bmp()
now warn (once at first use) if semi-transparent colours are
used (rather than silently treating them as fully
transparent).
o New function xspline() to provide base graphics support of
X-splines (cf grid.xspline).
o New function xyTable() does the 2D gridding "computations" used by
sunflowerplot().
o Rd conversion to HTML and CHM now makes use of classes, which
are set in the stylesheets. Editing R.css will change the
styles used for \env, \option, \pkg etc. (CHM styles are set
a...
2007 Oct 03
1
R-2.6.0 is released
...in.metafile() and bmp()
now warn (once at first use) if semi-transparent colours are
used (rather than silently treating them as fully
transparent).
o New function xspline() to provide base graphics support of
X-splines (cf grid.xspline).
o New function xyTable() does the 2D gridding "computations" used by
sunflowerplot().
o Rd conversion to HTML and CHM now makes use of classes, which
are set in the stylesheets. Editing R.css will change the
styles used for \env, \option, \pkg etc. (CHM styles are set
a...