Displaying 7 results from an estimated 7 matches for "dimenional".
Did you mean:
dimensional
2005 Feb 27
1
subsetting data set dimenion problem
(See DAAG book, p. 173, ex. 3)
I'm a new user of R, and I'm following the DAAG text. I want to create a
subset of the races2000 data frame, but get errors because of a mismatch
of values in some columns:
> library(DAAG)
> attach(races2000)
> hills2000 <- races2000[races2000$type == 'hill']
Error in as.matrix.data.frame(x) : dim<- : dims [product 770] do not
2004 Oct 31
2
Error Message: MCMCpack and coda
Hello All,
I'm trying to run a one-dimenional irt model using the packages MCMC and
coda on a rather large set of roll-call voting data with many missing
observations. Here's a sample of the code:
Post10<-
MCMCirt1d (Italy10, burnin = 1000, mcmc=50000, thin=100, verbose=TRUE,
theta.constraints = list(V549=1, V443=-1))
The MCMCirt1d co...
2013 Jan 29
2
converting XML document to table or dataframe
...e R
package.
My sample XML document is located at "
http://www.sec.gov/Archives/edgar/data/743988/000124636013000561/form.xml"
I have successfully import the XML document and then converted the XML
document to a list.
I am "stuck" trying to convert the document into a "2-dimenional" table or
dataframe.
What is a "good" way to convert the XML document to a 2-dimensional table
or data.frame? Ideally, I'd like a table with 1 row for each XML document,
and unique fieldnames. If fieldnames repeat, I'd like the names to be
numbered sequentially
e.g.
$nonD...
2010 Feb 25
1
binding multidimension array
I don't find rbind, cbind or other bind that bind in other dimesions
for multidimension array while keeping the result of the same
dimension.
For example, say, dim(x)=c(2,3,4), dim(y)=c(3,3,4). I want to have the
result z, where dim(z)=c(2+3,3,4), when I bind x and y in the first
dimenion. The bind can also be in the 2nd and 3rd dimesion.
Could somebody let me know if this family of
2005 Feb 28
0
Re: R-help Digest, Vol 24, Issue 28
You've omitted a comma. races2000 is a data frame,
which for purposes of extracting rows behaves like
a 2-dimenional object. The following works fine:
hills2000 <- races2000[races2000$type == 'hill', ]
Additionally, you might like to ponder
> type <- races2000[names(races2000)=="type"]
> type[1:4]
Error in "[.data.frame"(type, 1:4) : undefined columns selecte...
2000 Jan 30
1
character vectors not wrapping
...17" monitor, 800x600, if this matters):
[1] "A character vector with a single component consisting of a long string
gets truncated with $
The point of truncation changes when the window is resized with the mouse.
options(width=[value]) seems to work for other objects (e.g., one and two
dimenional arrays).
I'm using R (Rgui.exe) 0.90.1 on Windows 95 original relase (4.00.950).
I've been through the documentation, can't find anything on this. It is a
nuisance because I often can't read R error messages. Is there a setting I
need to change, aside from options(width=...)? Thank...
2008 Mar 11
4
Graphing question (multiple line graphs arranged spatially)
station month bas
190 5 0.000
190 7 1.563
190 10 0.000
190 11 0.000
202 4 18.750
202 5 18.750
202 7 6.250
202 10 4.800
202 11 3.125
198 4 18.750
198 5 31.250
198 7 3.125
198 10 3.200
198 11 12.500
205 4 0.000
205 5 0.000
205 7 0.000