Displaying 20 results from an estimated 7000 matches similar to: "(simple) xml into data.frame and reverse"
2008 Jul 02
1
Removing or overwriting an XML node
Hi,
I have an existing XML document on disk, which I'd like
to use as a template, and exchange a subnode with my own
newly created subtree:
<?xml version="1.0"?>
<Duncan>
<name a="1" b="xyz">
<first>Duncan</first>
<last>Temple Lang</last>
</name>
</Duncan>
created by e.g.
? library(XML)
2003 Jul 30
1
Write XML according to ggobi DTD
Hi,
Has anyone out there written a function to take a data.frame as input
and generate XML that conforms to the DTD for ggobi ("ggobi.dtd")? In
other words, like a simple version of the writeSDML function in the
StatDataML package, but using ggobi.dtd instead of StatDataML.dtd.
It looks easy to write such a function to handle data.frames with only
numeric data, but a bit of work with
2007 Jun 12
4
pretty report
Dear Listers:
I have a couple of data frames to report and each corresponds to
different condtions, e.g. conditions=c(10, 15, 20, 25). In this
examples, four data frames need to be exported in a "pretty" report.
I knew Perl has some module for exporting data to Excel and after
googling, I found R does not.
So I am wondering if there is a package in R for generating good
reports. I
2010 Jan 10
1
xmlToDataFrame#Help!!!#follow-up
Dieter Menne pointed out that the (small) xml attachment didn't make it.
Here is an in-line version (see end of message). Let's hope it works
this time.
I'm struggling with interpreting XML files created by ADODB as
data.frames and I'm looking for advice.
Note:
This xlm contains a result set which comes from a rectangular data
array. I've been trying to play with
2010 Jan 10
2
xmlToDataFrame#Help!!!
I'm struggling with interpreting XML files created by ADODB as
data.frames and I'm looking for advice (see attached example file).
Note:
This file contains a result set which comes from a rectangular data array.
I've been trying to play with parameters to the xmlToDataFrame function
in the XML package but I dont get it to extract the data frame.
This is what the result should look
2007 Oct 16
3
sieve filtering, rewriting subjects
Is it possible to modify an emails subject line in a sieve script?
I've seen references to 'addtag' whilst googling, but it appears
dovecots implementation doens't support it - are there any other methods?
As a side note, can anyone suggest a web based script editor that works?
Simply a text area to write the script in would do
Thanks,
--
Ian P. Christian ~ pookey.co.uk
2010 Jun 22
1
Adding style sheet line to xml output
I'm probably being dense but I can't work out how to add the second
line:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
<catalogue>
...
...
I can get the first line using:
saveXML(xml$value(), prefix='<?xml version="1.0"?>',
2012 Oct 13
0
XML_3.95-0.1.tar.gz does not build on FreeBSD
I tried to build (and install) XML_3.95-0.1.tar.gz on FreeBSD
10.0-CURRENT amd64, but it stopped during the check of
R_HAS_REMOVE_FINALIZERS (full log appended):
----------------------------------
R CMD INSTALL XML_3.95-0.1.tar.gz
[..snip..]
Checking for 1.8: -DR_HAS_REMOVE_FINALIZERS=1
-I/usr/local/include/libxml2 -I/usr/local/include
Using libxml2.*
checking for gzopen in -lz... gcc46
2007 May 18
1
Trouble compiling XML package
Dear Prof. Lang -
I am trying to install the XML library on a 64-bit SUSE linux system
(version info below) running 2.4.1.
I have gcc version 3.3.3, and libxml2 version 2.6.7. I know this is not
current, but I'm on a machine used and administered by others, and
updating libxml2 would require updating libc, and things get pretty
complicated from there.
Trying to install through R (1.9-0),
2012 Mar 21
1
Trouble installing the XML package
Hello everyone,
I am probably not the only one having trouble with this package but here goes.
I want to install XML on Ubuntu. I installed libxml2-dev and
everything works out fine until I get the following:
Error in reconcilePropertiesAndPrototype(name, slots, prototype,
superClasses, :
No definition was found for superclass "namedList" in the
specification of class
2012 May 20
3
dot - comma problem
Dear all
I am trying to use the ODB package to connect to an libreoffice-odb database.
The libreoffice package is german, thus, decimal separator is a comma. However,
I can open the database and upload a it without error,
library(ODB)
db <- odb.open("Test.odb")
but a soon as the "odb.open" command is executed, the decimal separator in R
is changed to comma.
Before
2013 Jan 29
2
converting XML document to table or dataframe
I am a relatively new user to R, and I am trying to learn more about
converting data in an XML document into "2-dimensional format" such as a
table or array. I might eventually wish to export this data into a
relational database such as SQL, and/or to work with this data within the R
package.
My sample XML document is located at "
2011 Sep 05
2
htmlParse hangs or crashes
Dear colleagues,
each time I use htmlParse, R crashes or hangs. The url I'd like to parse is included below as is the results of a series of basic commands that describe what I'm experiencing. The results of sessionInfo() are attached at the bottom of the message.
The thing is, htmlTreeParse appears to work just fine, although it doesn't appear to contain the information I need (the
2009 Nov 12
1
XML: Reading transition matrices into R
Hello,
from a software I have the following output in xml (see below):
It is a series of matrices, for each age one. I have 3 categories
(might vary in the application), hence, 3x3 matrices where each
element gives the probability of transition from i to j. I would like
read this data into R (preferably in a list, where each list element
is one of the age specific matrices) and - after altering
2012 Jun 30
2
Significance of interaction depends on factor reference level - lmer/AIC model averaging
Dear R users,
I am using lmer combined with AIC model selection and averaging (in the
MuMIn package) to try and assess how isotope values (which indicate diet)
vary within a population of animals.
I have multiple measures from individuals (variable 'Tattoo') and multiple
individuals within social groups within 4 locations (A, B, C ,D) crucially I
am interested if there are
2012 Dec 07
2
Assigning cases to groupings based on the values of several variables
Dear R-ers,
my task is to simple: to assign cases to desired groupings based on the
combined values on 2 variables. I can think of 3 methods of doing it.
Method 1 seems to me pretty r-like, but it requires a lot of lines of code
- onerous.
Method 2 is a loop, so not very good - as it loops through all rows of
mydata.
Method 3 is a loop but loops through fewer lines, so it seems to me more
2004 May 21
1
Bug in update()? (PR#6902)
Dear all,
I noticed the following while playing around with fitting log-linear
models to contingency tables using R 1.8.1, but the problem also
exists under R 1.9.0.
A reproducible example uses the following contingency table:
> library(MASS)
> data(quine)
> tmp <- with(quine, expand.grid(Eth=levels(Eth), Sex=levels(Sex),
+ Lrn=levels(Lrn), Age=levels(Age)))
2007 Jul 09
2
ANOVA: Does a Between-Subjects Factor belong in the Error Term?
I am executing a Repeated Measures Analysis of Variance with 1 DV (LOCOMOTOR
RESPONSE), 2 Within-Subjects Factors (AGE, ACOUSTIC CONDITION), and 1
Between-Subjects Factor (SEX).
Does anyone know whether the between-subjects factor (SEX) belongs in the
Error Term of the aov or not? And if it does belong, where in the Error Term
does it go? The 3 possible scenarios are listed below:
e.g.,
1.
2010 Jul 31
3
I have a problem
dear£º
in the example£¨nomogram£©£¬I don't understand the meanings of the program which have been marked by red line.And how to compile the program(L <- .4*(sex=='male') + .045*(age-50) +
(log(cholesterol - 10)-5.2)*(-2*(sex=='female') + 2*(sex=='male'))).
n <- 1000 # define sample size
set.seed(17) # so can reproduce the results
age <- rnorm(n, 50, 10)
2013 Mar 09
2
quesion about lm function
Hi all:
My data is in the attachment.
I want to analysis the mean difference of y between 2 sex.
My code:
result_lm<-lm(y~factor(sex) + x1 + x2)
summary(result_lm)
The result of "factor(sex)m" 136.83, is the mean difference of y between 2 sex,and the corresponding p value is 0.07618.
My question is: how to get the mean y of sex(m) and sex(f) respectively via lm function?
Many