similar to: convert an xml object into a list on R 2.13

Displaying 20 results from an estimated 20000 matches similar to: "convert an xml object into a list on R 2.13"

2013 Apr 12
1
Problem with handling of attributes in xmlToList in XML package
Hello all, I have a problem with the way attributes are dealt with in the function xmlToList(), and I haven't been able to figure it out for days now. Say I have a document (produced by nmap) like this: > mydoc <- '<host starttime="1365204834" endtime="1365205860"><status state="up" reason="echo-reply"
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 Apr 03
2
converting "call" objects into character
Dear all, I would like to log the calls to my functions. I am trying to do this using the function match.call(): fTest<-function(x) { theCall<-match.call() print(theCall) return(x) } > fTest(2) fTest(x = 2) [1] 2 I can see "theCall" printed into the console, but I don't manage to convert it into a character to write it into a log file
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
2011 May 26
1
R-2.10.1 to R-2.13.0
Dear List, I am currently running R-2.10.1. I wish to install R-2.13.0 or update my R-2.10.1 to the R-2.13.0. I have downloaded R-2.13.0 but wish to seek your advice before installing that. Please is there a better way of updating to the newer version other than downloading and installing the version? Thanks for your suggestions. Ogbos [[alternative HTML version deleted]]
2011 Jun 02
1
ARM package for R 2.10.1
Dear all... I am looking for the zip file of an old version of the ARM package compatible for R 2.10.1 version. When I try to charge the ARM package I get the following message "package 'arm' was built under R version 2.13.0 ". I can not update R to 2.13.0 as I always get this error "the setup files are corrupted" "please obtain a new copy of the
2011 Apr 01
1
controlling the labels width of a barplot
Dear all, I am trying the barplot command but some of the labels are disappearing as there is not enough place on the graph to put them all. Here is an example of code that doesn't show all the labels: barplot(sort(runif(9,0,0.2),decreasing=TRUE),xlim=c(0,20),width=2,names.arg=c("first name","second name","third name","fourth name","fifth
2011 May 09
3
converting a matrix or data.frame into an html table
Dear all, Is there a function in R to convert a matrix or a data.frame into an html table? Many thanks, Samuel [[alternative HTML version deleted]]
2011 Apr 25
2
Problem installing XML in Ubuntu 10.10
Hello folks, Here's is info on what system I'm working on. > sessionInfo() R version 2.13.0 (2011-04-13) Platform: i686-pc-linux-gnu (32-bit) I'm trying to install the XML package. However, I end up with the following error message. > install.packages("XML") .... checking for xml2-config... no Cannot find xml2-config ERROR: configuration failed for package ‘XML’ *
2011 Mar 27
1
Bug in tools::compactPDF() in 2.13-0-alpha
Dear List, There seems to be an bug in compactPDF() or at least an inconsistency with the documented behaviour. The documentations states: Details: This by default makes use of ?qpdf?, available from <URL: http://qpdf.sourceforge.net/>, including a Windows binary. If ?gs_cmd? is non-empty, GhostScript is used. I don't have qpdf on my system so planned to use
2012 Feb 16
1
Repeated cross-validation for a lm object
Dear R users I'd like to hear from someone if there is a function to do a repeated k-fold cross-validation for a lm object and get the predicted values for every observation. The situation is as follows: I had a data set composed by 174 observations from which I sampled randomly a subset composed by 150 observations. With the subset (n = 150) I fitted the model: y = a + bx. The model
2014 Nov 14
0
How to convert "device_model_version = "qemu-xen-traditiona"" into libvirt xml file How to convert "device_model_version = "qemu-xen-traditiona"" into libvirt xml file
I am using Xen-4.4.0, libvirt-1.2.9 My ubuntu.cfg is: ubuntu10.cfg bootloader = "/usr/local/lib/xen/boot/hvmloader" builder="hvm" memory = 512 name = "ubuntu" vif = [ "type=ioemu,bridge=ovsbr0", "type=ioemu,bridge=ovsbr0","type=ioemu,bridge=ovsbr0","type=ioemu,bridge=ovsbr0",,"type=ioemu,bridge=ovsbr0"]
2011 Sep 27
1
problem with switch function across R versions 2.10 and 2.13
Hello, The following piece of code works fine in R.2.10 (ubuntu): switch(distr,         normal    = {if (is.infinite(param["desv"]))                      n <- c(n,"La desv. estándar no puede ser Inf.")                    if (param["desv"]<0)                      n <- c(n,"La desv. estándar no puede ser <0.")                    },        
2008 Feb 27
1
how to convert a table to adjacency matrix used in social network analysis?
Hi Guys, Do you any one know how to convert a long format table to an adjacency matrix used in sna? The long table looks like p1 p2 counts a b 100 a c 200 a d 100 b c 80 b d 90 b e 100 c d 100 c e 40 d e 60 and I want to convert it to an adjacency matrix which can be used in sna? Any methods will be appreciated! btw, besides sna package, is there any better package can be used in social
2011 Jul 21
2
revolution-mkl package not functioning correctly with R 2.13
It appears that the revoluton-mkl package, available via the multiverse Ubuntu repository with the purpose of adding multi-threaded numeric libraries to R, is not function correctly with R 2.13 (at least the version found on CRAN). Testing with "R-benchmark-25.R" (found at http://r.research.att.com/benchmarks/), I get the following error, after installing the revolution-mkl package
2014 Mar 06
1
Fail to convert LXC container configuration into a domain XML fragment
Hi, all, I used lxc-tools to create a linux container. I am trying to transfrom LXC container configuration into a domain XML fragment using the following command: *$ virsh -c lxc:/// domxml-from-native lxc /var/lib/lxc/my_conatiner/config* However, I get the error message, error: this function is not supported by the connection driver: virConnectDomainXMLFromNative It seems that
2011 May 02
0
R 2.13 segfault with range()
Running on a shared CENTOS server tmt711% R --vanilla R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution
2011 Apr 11
3
sort.int(S3object) strips class but not the is.object flag
If x has an S3 class then sort.int(x) returns a value without an S3 class but which has the is.object flag set, which, I think, causes identical() give a false/misleading report: > x <- structure(1:3, class="unrecognizedClass") > y <- sort.int(x) > t <- 1:3 > identical(y, t) # expect TRUE [1] FALSE > identical(as.vector(y), as.vector(t)) # expect
2006 Dec 19
1
smbstatus parsing (XML output)
Hey all, I'm preparing to start development of a new version of 'smbstatus' that produces XML output, instead of the tabular data it currently produces. This follows an attempt to parse the output of the current 'smbstatus' ( 3.0.22) using grep and a few other shell tools, from a system call in PHP, and then further RegEx parsing to create a multidimensional array of the
2010 Nov 08
1
Unexpected behavior with cat
I am experiencing unexpected behavior with the command cat under Window GUI builds of R version 2.12.0 (it does not seem to be an issue in Rterm). For example if I issue the command cat(70,"\r") I get back text that looks like Asian characters. If I highlight and copy that text, it is the text I would regularly expect, e.g. the number 70 and the prompt line. Highlighting the text