similar to: commenting demos

Displaying 20 results from an estimated 3000 matches similar to: "commenting demos"

2005 Jan 21
6
dim vs length for vectors
Hi all, I'm not sure if this is a feature or a bug (and I did read the FAQ and the posting guide, but am still not sure). Some of my students have been complaining and I thought I just might ask: Let K be a vector of length k. If one types dim(K), you get NULL rather than [1] k. Is this logical? Here's the way I explain it (and maybe someone can provide a more accurate
2003 Sep 23
4
searching R-help within a function
Hi, I am working on a package which requires separate documentation (tutorial documentation, really, with a lot of beautifully latexed equations), and does not use R-help. I am trying to make it so that my help function will automatically search R-help if the help topic isn't found in my documentation. The function looks something like this: help.pkg <- function(topic) { #
2003 Sep 23
4
searching R-help within a function
Hi, I am working on a package which requires separate documentation (tutorial documentation, really, with a lot of beautifully latexed equations), and does not use R-help. I am trying to make it so that my help function will automatically search R-help if the help topic isn't found in my documentation. The function looks something like this: help.pkg <- function(topic) { #
2004 Apr 16
1
install.packages
install.packages works for Linux because the directory structure is not version dependent, as it is for the Windows download. That should be fixed as soon as my sys admin consents to install R 1.9.0 so we can do the cross compile. Of course, you are right, Martin and Peter, that Zelig should be on CRAN proper. We just need to write a few .Rd files to be compliant with R check, and change our
2003 Aug 06
1
demo() function returns alphabetical matches, not unique matches?
Hi, I'm working on a set of demo files for a package, and I'm having a problem because I have two demo files (one called "logit", the other called "blogit") and when I type demo(logit), it gives me demo(blogit) instead. (And calls it the the demo for logit.) I've figured out that this is because the demo() function searches through all the demo directories (in
2003 Oct 11
1
boot statictic fn for dual estimation of 2 stats?
Hi, I am trying to use boot() to refit an ordinal logit (polr in MASS) model. (A very basic bootstrap which samples from the data frame without replacement and updates the model.) I need to extract two statistics per run (the coefficients and zeta) and I tried concatenating them into a single vector after fitting, but I get the following error: Error in "[<-"(*tmp*, r, ,
2005 Nov 16
1
normal cdf over an interval
Hi, I'm trying to find a way to take evaluate the Normal CDF over an interval and return the result on the log scale. This works, but I think it isn't numerically stable: log(pnorm(a, mean = x, sd = y) - pnorm(b, mean = x, sd = y)) Does anyone know of a single function that does the above? Or knows of a way to make it more stable? I'd really appreciate any suggestions!
2003 Jan 08
1
Lattice: Plotting two densities on the same plot(s)?
I am trying to plot two density lines on the same graph. Using the functions on the base package, I would go: plot(density(x), col = 1) lines(density(y), col = 2) And I get two distinct (one-bump) density lines. When I try to do it using lattice, I get two two-humped lines. (In other words, I think the smoothing function is taking the next set of data points and smoothing them in the same
2011 Apr 26
2
Wish R Core had a standard format (or generic function) for "newdata" objects
Is anybody working on a way to standardize the creation of "newdata" objects for predict methods? When using predict, I find it difficult/tedious to create newdata data frames when there are many variables. It is necessary to set all variables at the mean/mode/median, and then for some variables of interest, one has to insert values for which predictions are desired. I was at a
2008 Jun 13
2
Maximum likelihood estimation in R with censored Data
Hello, I'm trying to calculate the Maximum likelihood estimators for a dataset which contains censored data. I started by using the function "nlm", but isn't there a separate method for doing this for e.g. the "weibull" and the "log-normal" distribution? Thanks, Olivia [[alternative HTML version deleted]]
2013 Mar 21
2
remote connection issue 'virsh -c qemu+ssh:///root@localhost/system list'
Hi, I'm trying remote connection with qemu hypervisor on FSL PPC board. The libvirt server is the PPC board. root at ppc:~# ifconfig eth0 10.193.20.109 root at ppc:~# libvirtd -d root at ppc:~# virsh -c qemu:///system define test.xml root at ppc:~# virsh -c qemu:///system start test root at ppc:~# virsh -c qemu:///system list --all Id Name State
2013 Apr 09
2
fail to convert qemu xml to args with libvirt-1.0.4: An error occurred, but the cause is unknown
Hi, I used to convert qemu XML to args with libvirt-1.0.3. But it failed to convert with libvirt-1.0.4. # virsh domxml-to-native qemu-argv test.xml >test.sh error: An error occurred, but the cause is unknown Comparing the debug file as below: 1) lbvirt-1.0.3 <cut> 2013-04-09 03:23:47.296+0000: 2669: debug : virEventPollInterruptLocked:716 : Interrupting 2013-04-09 03:23:47.296+0000:
2013 Mar 28
1
migrate qemu domains
Hi, I tried to migrate qemu domains between same two Freescale PPC platforms. 1) Migrate test domain from Host1(10.193.20.109) to Host2(10.193.20.181). root at ppc-host1:~# virsh migrate test qemu+tls://10.193.20.181/system or root at ppc-host2:~# virsh -c qemu+tls://10.193.20.109/system migrate test qemu:///system I waited for a while and finally got error message as below: error: Unable to
2013 Apr 30
1
Stacked geom_bar with aggregated SE -ggplot2
Hi there,? I've been battling with an extension of this in my own data: getting appropriate error bars once data is stacked in a bar graph.? (original question: http://r.789695.n4.nabble.com/ggplot2-se-variable-in-geom-errorbar-s-limits- td3311176.html). It wouldn't let me reply to that thread. A modification of the earlier answer:? data(diamonds)? ?diamonds_df <- ddply(diamonds,
2006 Sep 04
1
RGui problem in Windows XP with demo() and help()
I just installed R-2.3.1pat under Windows XP as well as the associated RWinEdt. If I start RGui from its shortcut (but do _not_ also start RWinEdt) and then try to execute demo() or help(), I get a RWinEdt pop-up error window with message: File "D:\WP\WinEdtData\WinEdt\D:/WP/WinEdtData/WinEdt/R.ini" does not exist! Qualifier -e/-E does not specify an existing file! First
2003 Mar 24
1
Winedt and R on Windows XP
Dear All; I have used Winedt editor in conjunction with R on the Win2K platform for more than a year without any problem. Recently I purchased a P4 machine with Windows XP. Following the installation of R1.62 and WinEdt 5.3 to separate directories, I copied R-WinEdt to the Plugins subdirectory under the Winedt directory, clicked on the "install" file and edited the Rprofile with two
2002 Jan 05
1
R-WinEdt question - answer
The answer to my question was contained in http://cran.r-project.org/contrib/extra/winedt/ReadMe , although it helped to receive the restatements that were emailed to me. As mentioned by Uwe Ligges, Renuad Lancelot, Niels Waller, my mistake was not starting R before using R-WindEdt. Below I will copy the instructions on using R-WinEdt by Renaud Lancelot (except for the last paragraph which is
2002 Dec 04
1
R-Winedt
Hello: I installed R-WinEdit according to the instructions, including those for setting the editor and pager options. Doesn''t seem to work--when I try to edit a file, I get the following: > > options(editor="\"c:/program files/winedt/winedt\" -c=\"R-WinEdt-edit\" > -e=r.ini -V") > > getOption("editor") >[1]
2010 May 11
2
RWinEdt in WinEdt 6
I'm having difficulty installing RWinEdt in WinEdt6. I receive the following message: Error : .onAttach failed in attachNamespace() for 'RWinEdt', details: call: getWinEdt() error: WinEdt is not installed properly. I have tried following the manual instructions in the readme.txt without success. I receive the following message: WinEdt's Initialization File "C:\Program
2011 Mar 01
1
RWinEdt difficulties
Hello Everyone I have just upgraded my PC to Windows 7 (64 bit) and I have installed R 2.12.2. R seems to be working fine. I am having problems getting RWinEdt working with it though. I have tried installing WinEdt 6.0 and WinEdt 5.5. But both fail with the same error using R as 64 bit or 32 bit. I install the package using Administrator rights. > library(RWinEdt) Warning message: In