Displaying 20 results from an estimated 100 matches similar to: "Need help installing qtoolbox"
2007 Feb 01
3
Can this loop be delooped?
Hi.
I have the following code in a loop. It splits a vector into subvectors of
equal size. But if the size of the original vector is not an exact multiple
of the desired subvector size, then the first few subvectors have one more
element than the last few. I know that the cut function could be used to
determine where to break up the vector, but it doesn't seem to provide
control over
2011 Nov 11
2
One step way to create data frame with variable "variable names"?
Suppose
plotx <- "someName"
modx <- "otherName"
plotxRange <- c(10,20)
modxVals <- c(1,2,3)
It often happens I want to create a dataframe or object with plotx or
modx as the variable names. But can't understand syntax to do that.
I can get this done in 2 steps, creating the data frame and then
assigning names, as in
newdf <- data.frame( c(1, 2, 3, 4),
2010 Mar 26
3
Create blocks or observations
Anyone who can help me with this?
I have 48 observations (I dont want to alter their order). I want to group
these observations into 16 blocks. So I should have 3 observations for each
block. This is what I did in R, but it has warnings.
> y #contains my 48 observations
[1] 2.4 2.4 2.4 2.2 2.1 1.5 2.3 2.3 2.5 2.0 1.9 1.7 2.2 1.8 3.2 3.2 2.7 2.2
2.2
[20] 1.9 1.9 1.8 2.7 3.0
2011 Nov 10
3
Error in matrix, not ordered vectors or numerical value, and SIAR.
Help!
model1 <- siarmcmcdirichletv4(data, source, tef, concdep=0, 500000, 50000)
Error in matrix(1, ncol = (numsources + numiso) * numgroups, nrow =
(siardata$iterations - :
invalid 'ncol' value (too large or NA)
In addition: Warning message:
In Ops.ordered((numsources + numiso), numgroups) :
'*' is not meaningful for ordered factors
Previous message, but more problems:
2013 Feb 01
2
Change default order of colors & line types
Dear R users,
I'd like to change the default order of colors & line types.
Especially I am using ggplot2 and using color Set1.
In Set1, the default color order is red, blue, green, violet,.. ect.
However, I want to put red in fourth (not first).
Likewise, I want to change the order of default linetype. I want to
put "solid" line in fourth.
How can I do thses?
R code to draw the
2011 May 17
1
simprof test using jaccard distance
Dear All,
I would like to use the simprof function (clustsig package) but the available distances do not include Jaccard distance, which is the most appropriate for pres/abs community data. Here is the core of the function:
> simprof
function (data, num.expected = 1000, num.simulated = 999, method.cluster = "average",
method.distance = "euclidean", method.transform =
2010 Sep 07
1
problems with siar package
Hi, my name is Julio, I'm trying to run a script, specifically with the siar
package on R (I have attached the script) but the program collapses on
during the run. The error message says:
*** caught segfault ***
address 0xb31941cc, cause 'memory not mapped'
Traceback:
1: .C("siarmcmcv4", as.integer(numdata), as.integer(numsources),
as.integer(numiso),
2007 May 13
2
Oddities upgrading from 2.4.1 to 2.5.0
I'm working on Windoze XP and have for some time installed R in D:\R and
upgraded my packages after installing the new version of R with a bit
of code I think I got from the list:
ip <- installed.packages(lib.loc = "d:\\R\\R-2.4.1\\library")
ip <- ip[ip[,1]!="base" ,1]
install.packages(ip)
This time around that's produced some warning grumbles:
Warning messages:
2011 Nov 10
1
Errors in SIAR
Help!
model1 <- siarmcmcdirichletv4(data, source, tef, concdep=0, 500000, 50000)
Error in matrix(1, ncol = (numsources + numiso) * numgroups, nrow =
(siardata$iterations - :
invalid 'ncol' value (too large or NA)
In addition: Warning message:
In Ops.ordered((numsources + numiso), numgroups) :
'*' is not meaningful for ordered factors
Previous message, but more
2004 Apr 23
0
Statistical Quality Control
blake holton wrote
>I've been familiarizing myself with the features of R over the past few
>days. I'm impressed with the quality and quantity of the features and
>packages. One feature that I would be interested in would be a package for
>statistical quality control. Does a package for statistical quality control
>exist that I've been unable to locate?
>
>If
2007 Feb 16
1
Sampling distribution of the range statistic
R-helpers:
In the construction of control charts for statistical quality control
objectives, one might choose to estimate the control limits for the mean
using the mean range of the samples. This requires multiplying the mean
range by a correction factor, often called "d2", that is tabulated in
many books. The origin of "d2" seems to be table 2 of the following
paper:
2006 May 26
13
win32-dir, unicode
Hi,
I''ve got a preliminary version of the pure Ruby version of win32-dir in
CVS. However, I was hoping to work out the Unicode issue. Run this:
from = "C:\\test"
to = "?????"
Dir.mkdir(from) unless File.exists?(from)
Dir.create_junction(to, from)
It works, but my explorer (and dos) window shows the name garbled. I
don''t think it''s a font
2004 Feb 24
2
Statistical Quality Control
Greetings,
I've been familiarizing myself with the features of R over the past few
days. I'm impressed with the quality and quantity of the features and
packages. One feature that I would be interested in would be a package for
statistical quality control. Does a package for statistical quality control
exist that I've been unable to locate?
If not, is anyone aware of efforts to
1998 Mar 12
0
Code to check Password Server Group Memberships
I am not a member of the samba listserv, but I wanted to contribute
the following code to the samba effort.
The following is clipped from some experimental
changes I have made to my own copy of the samba
source. I have not included all of the changes
because I don't have the time to. But someone should
be able to properly do the integration without too
much effort.
Summary, these
2008 Mar 15
1
feeding merge.zoo a vector containing the names of zoo objects?
Hi, the snippet of code below works, but I would like to know how to feed the
function merge.zoo the contents of
CADstocknames rather than having to hard code it into the merge.zoo command.
I think I must be missing something simple, but I cannot for the life of me
figure it out. Thanks in advance for any enlightenment offered.
library(zoo)
CADstocknames <-
2007 Apr 13
2
R on Solaris 10 x64
Hi R Developers,
Greg is helping me with debugging R on Solaris 10 x64. Please let us
know if you have any thoughts or tips that can help us debug this.
Thanks,
David
************
Using default transfer plist
in vector_io: permuting
About to write
*** caught segfault ***
address e8554000, cause 'memory not mapped'
Traceback:
1: .External("do_hdf5save", call,
2014 Aug 08
2
[PATCH 1/2] Add type checking, support integers as value
Before this patch, Python would segfault once you pass a non-string key
or value to node_set_value. It was also not possible to set bytes on
Python 3 as Unicode was assumed (Python 2 was not affected by this).
This patch fixes recognition of bytes for Python 3, but in addition it
recognizes ints (includes 'long' in Python 2) for DWORD (LE + BE) and
QWORDs. For this purpose, a new field
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the
solution I found with respect to UTF-8, YAML::load, and Ruby/Rails.
Comments are appreciated.
- - -
I had been struggling for two days to get UTF-8 working in my Rails app.
I had/have a localization file, lib\locale\de.yml, that had iso-8859-1
encoding. I could not get that to display properly.
Marnen, quite correctly,
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):