Displaying 20 results from an estimated 7000 matches similar to: "Error: argument is of length zero"
2009 Jun 23
2
driver file
Hi,
How can I, from a single "driver" file, source other files in such a way
that I can access their functions with parameters defined in my "driver"
file? I wish to do this to avoid creating a single, self-contained but
clunky piece of code. I have searched and found functions such as file(),
pipe(), open(), found manuals on creating my own packages, etc. but I become
2006 Jan 26
1
Help constructing a find_by_sql command
Hello all. I am trying to do the equivalent of:
@componentlogs = Componentlog.find(:all,
:conditions => [ "cl_compname like ?", @criteria ],
:offset => offset,
:limit => items_per_page,
:order => "cl_spr DESC" )
in a find_by_sql statement. I cannot use the build in because the
adaptor isn''t quite right (OCI8)
When I use it I get the following error
2006 Jul 04
1
[Fwd: formatting using the write statement]
>I have a series of write statements because
>i am writing to a file
>where the characters strings are the column names of a dataframe
>and the numbers are the elements in a particular row.
>So, a file might look like
>
>AAA 2.1
>BB 3.1
>AHLZ 0.2
>
>and it would be named "rowname".mls.
>
>so, each time i get to a new row, i create a new file and
2011 May 18
4
Loop stopping after 1 iteration
Hi all,
This is a very basic question, but I just can't figure out why R is handling
a loop I'm writing the way it is.
Here is the script I have written:
grid_2_series<-function(gage_handle,data_type,filename)
series_name<-paste(gage_handle,data_type,sep="_")
data_grid<-read.table(file=paste(filename,".txt",sep=""))
2006 Jan 25
4
Cannot :order when using :offset and :limit in find
Hello all.
I am using the Paginate_with_ajax code as described on the wiki but I am
running into the following problem. The following code will work fine
and retrieved unsorted records in a hunky dory fashion:
@componentlogs = Componentlog.find(:all,
:conditions => [ "cl_compname like ?", @criteria ],
:offset => offset,
:limit => items_per_page )
However if I try and add an
2011 Apr 04
1
moving mean and moving variance functions
Hello
Lets say as an example I have a dataframe with the following attributes:
rownum(1:405), colnum(1:287), year(2000:2009), daily(rownum x colnum x year)
and foragePotential (0:1, by 0.01). The data is actually stored in a netcdf
file and I'm trying to provide a conceptual version of the data.
Ok. I need to calculate a moving mean and a moving variance for each cell on
the following
2010 May 30
1
Count the number of consecutive 1's
Hi All,
We have a raw dataset that, on the sampling time column, for example:
t <- c(0,1,2,5,0,5,0,2,5)
And we need to create a second column that indicates the day of the sampling, so the end result of what we want is a vector:
1,1,1,1,2,2,3,3,3
Additional information that might simplify the matter is that, for each day, the time starts with zero and ends with 5.
I am a beginner with R.? So
2011 Jun 23
2
Confidence interval from resampling
Dear R gurus,
I have the following code, but I still not know how to estimate and extract
confidence intervals (95%CI) from resampling.
Thanks!
~Adriana
#data
penta<-c(770,729,640,486,450,410,400,340,306,283,278,260,253,242,240,229,201,198,190,186,180,170,168,151,150,148,147,125,117,110,107,104,85,83,80,74,70,66,54,46,45,43,40,38,10)
x<-log(penta+1)
plot(ecdf(x),
2004 Mar 19
2
for loop or Hmisc library trap.rule function syntax error
Hello:
I am new R user stumped why the R code after this paragraph generates "Error:
syntax error" messages after each of the last 2 lines. I have tried searching
the manuals, Hmisc documentation, contributed manuals, help archives, and
Internet. I am running R 1.7.1 under Windows 2000 (I will upgrade when my
imminent OS upgrade happens). My data was successfully entered and
2006 Jan 13
19
Problems with scaffold''s parameter on Oracle
Hi
I run Ruby on Rails on Oracle XE.
I have a simple table:
create table customer(id number primary key, name varchar2(100));
And
ruby script\generate model Customer
ruby script\generate controller Customer
http://localhost:3000/customer/
- show a fine list, but when I click show/edit/destroy, I get an
ORA-01722:
OCIError: ORA-01722: invalid number: select * from (select raw_sql_.*,
2011 Dec 07
1
data frame and cumulative sum
Hello,
I have a data frame that looks like this (containing interarrival times):
> str(df)
'data.frame': 18233 obs. of 1 variable:
$ Interarrival: int 135 806 117 4 14 1 9 104 169 0 ...
> head(df)
Interarrival
1 135
2 806
3 117
4 4
5 14
6 1
>
This corresponds to the time differences (in ms) of a poisson arrival
2012 Feb 24
6
strange behaviour of "POSIXlt" "POSIXt" object
Hi,
Does anybody know why get I this kind of strange situation:
Browse[2]> hcEnd
[1] "2009-03-29 06:30:00"
Browse[2]> class(hcEnd)
[1] "POSIXlt" "POSIXt"
Browse[2]> is.na(hcEnd)
[1] TRUE
This issue is the source of my all issues in my program,
Thanks for your help
--
View this message in context:
2008 Jul 18
0
spreading the risk
This is for ACroske but I can't find his email so I'll just send it to
the list. Hi ACroske: The code below takes a zeros and ones matrix and
puts ones
in the places you wanted. It can be made shorter ( maybe ?. i haven't
thought about that ) but first let me know if that's what you wanted ?
The original matrix is called binary.matrix and the final matrix is
called tempbinmat.
2009 Aug 26
1
contourLines() documentation
Hello,
I have searched for documentation on the function contourLines's algorithm
but cannot find a thing. I am about to submit a paper to a journal but
cannot yet do so because I need to provide some reference for this function.
Does anyone know what algorithm is used for this function?
Thanks,
Derek Lacoursiere
--
View this message in context:
2011 Apr 08
1
Package mice: Error in if (meth[j] != "") { : argument is of length zero
Dear R users,
I am using package mice and I am getting the error "
Error in if (meth[j] != "") { : argument is of length zero." I have tried using several different versions of R (even the one that will be coming out this month) to no avail. I am using RStudio as my interface with R. Also note that I had run this a couple of days ago and it was working fine; I can't,
2013 Feb 18
1
ldap+kerberos+samba
Dear list members,
i am trying to get ldap + samba + kerberos working and have tried to
make the proper configuration.
Integrating samba + ldap was pretty easy, but getting kerberos to work
seems a nightmare.
Here it is what i tried (copy and pasted from my link client):
harley at 802-1x:/etc/samba$ kdestroy
harley at 802-1x:/etc/samba$ kinit
harley at UFV.BR's Password:
harley at
2008 Aug 11
2
sampling
Hello,
I have a matrix and I want to sample 20 rows that are the the percentiles of
0-100 in 0.05 increments. I have a vector of my sequence
(0, 0.05, 0.10, 0.15,....1.0) and also
a normalised vector of rownumbers. That is, there are 234 rows (for
example) so I do
perc<-c(1:234/234)
which looks like a bunch of numbers from 0 - 1.
In Excel (which I try not to use at every possible
2006 Jul 06
4
Oracle HR on Rails
Interesting read...apologies if it has been posted already.
http://www.oracle.com/technology/pub/articles/saternos-rails.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060706/619e650a/attachment.html
2004 Aug 25
3
integrate function
Is possible to integrate this diferential equation:
dN/dt = Nr(1-(N/K))
in R using the integrate() function?
Or any other diferential equation?
If yes, how?
If no, anybody know any software on linux that make this?
Inte
Ronaldo
--
O problema de ter os dois p??s bem firmes no ch??o ?? que voc?? n??o vai conseguir
tirar as cal??as.
--An??nimo
--
|> // | \\
2006 Mar 15
1
manipulating weeks dates
Hi,
I have these vectors:
> WEEK <- rep(c(1:52),2)
> YEAR <- rep(c(2000,1999),c(52,52))
How to make a vector of Date with weeks in years? I try as.date from survival
package, but it dont work with weeks, just only with days, months etcs.
Thanks
Ronaldo
--
"Realmente minha cidade e muito facultativa"
--Elivelton, ao rep?rter da Jovem Pan que falava das muitas