Hi,
I'm trying to do text corpus processing on some novels, with koRpus
package and Tree Tagger. The script lists all txt files (11 in all) in a
dir, and processes it one by one.
##
rm(list=ls())
library(koRpus)
library(koRpus.lang.en)
set.kRp.env(TT.cmd = "/pathto/tree-tagger-english
I hope this toy example gives an idea to understand the problems that
you are facing now. Please see the below:
# 1. Create an empty list
> A <- list()
> A
list()
# 2. Add the first component (vector with two elements).
> A[[1]] <- c(2,6)
> A
[[1]]
[1] 2 6
# 3. Now, add the third component
Hello,
kindly ,
how to catch this Error
Error in A[[i]] : subscript out of bounds
and check that the list is empty is.null( A[[i]] ) do no twork
thanks in advance
R.I
[[alternative HTML version deleted]]
__
Here is the error am getting
Error: chunk 1
Error in tt[[ll[v]]] : subscript out of bounds
Error in rle(filenames) : 'x' must be an atomic vector
Calls: -> -> RweaveTryStop
Execution halted
On Wed, Nov 27, 2013 at 9:25 AM, Keniajin Wambui wrote:
> Dear Jeff;
> Below is the output for session
Dear Jeff;
Below is the output for sessioninfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United
Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United King
This is the kind of question where including the output of sessionInfo() is a
really good idea.
This would, for example, answer the question of whether you are in fact using
the x64 version of R.
---
Jeff Newmiller
I am using R3.0.2 on a windows 64 bit machine. I building a .rnw file
from an .r file. I am using MikTex as the engine for latex. The
function dtaStata <- read.dta("core2.dta", convert.dates=TRUE) works
well in .R but; When I try reading a dta (stata) file I get an error
"subscript out of bounds".
Hi all,
I've written a function for a simulation which will - in general operation
without being specific to the simulation scenario, duplicate or delete columns
from a matrix based on two values which determine how many as a proportion of
the matrix: the two values are always between 0.01 and
I am having trouble outputting a presence/absence heatmap using the following R
script:
source("http://faculty.ucr.edu/~tgirke/Documents/R_BioCond/My_R_Scripts/overLapper.R";)
I can generate the heatmap graphic. I just can't sort my columns without
getting an error.
The instructions I'm follow
Great! I got it. Thanks a bunch.
On Thu, Apr 28, 2011 at 4:02 PM, Duncan Murdoch wrote:
> On 28/04/2011 3:49 PM, Dat Mai wrote:
>
>> I currently have this code:
>>
>> for(j in 2:n){
>> for(i in 1:(j-1)){
>>
>> # Make sure the inputs are for the matrix "m"
>> input1=rownames(m)[i]
>>
On 28/04/2011 3:49 PM, Dat Mai wrote:
I currently have this code:
for(j in 2:n){
for(i in 1:(j-1)){
# Make sure the inputs are for the matrix "m"
input1=rownames(m)[i]
input2=colnames(m)[j]
q=t[(t$Rec1==input1& t$Rec2==input2),output]
if(length(q)==0){
q=t[
I currently have this code:
for(j in 2:n){
for(i in 1:(j-1)){
# Make sure the inputs are for the matrix "m"
input1=rownames(m)[i]
input2=colnames(m)[j]
q=t[(t$Rec1==input1 & t$Rec2==input2),output]
if(length(q)==0){
q=t[(t$Rec1==input2 & t$Rec2==input1),output]
}
On Mar 5, 2011, at 7:41 AM, Stat Consult wrote:
On Sat, Mar 5, 2011 at 4:08 PM, Stat Consult
wrote:
Dear ALL
I cannot run this line
stat.obs <- apply (GS, 2, function(z) Hott2(t(DATA[which(z==1),]),
cl))
Error in Hott2 (t(DATA[which(z == 1), ]), cl) : subscript out of
bounds
I wil
Dear ALL
I cannot run this line
stat.obs <- apply (GS, 2, function(z) Hott2(t(DATA[which(z==1),]), cl))
Error in Hott2 (t(DATA[which(z == 1), ]), cl) : subscript out of bounds
I will be glade if you guide me.
***
*GS
On Sat, Mar 5, 2011 at 4:08 PM, Stat Consult wrote:
> Dear ALL
>
> I cannot run this line
>
> stat.obs <- apply (GS, 2, function(z) Hott2(t(DATA[which(z==1),]), cl))
>
> Error in Hott2 (t(DATA[which(z == 1), ]), cl) : subscript out of bounds
>
> I will be glade if you guide me.
>
>
> *
On 11/24/2009 10:00 AM, tobiasfa wrote:
Hi!
Trying to make a forecast, and get the following error message:
Error in NextMethod("[<-") : subscript out of bounds
The script is as follows:
Forecast.A<- ts(matrix(NA, nrow=25, ncol = 1,
+ dimnames = list(c(), c("Outcome"))),
+ start = c(2006,
Hi!
Trying to make a forecast, and get the following error message:
Error in NextMethod("[<-") : subscript out of bounds
The script is as follows:
> Forecast.A <- ts(matrix(NA, nrow=25, ncol = 1,
+ dimnames = list(c(), c("Outcome"))),
+ start = c(2006, 10), frequency = 12)
> for (i in 1:25) {
Consider ->
if (BinNumber==1)
Loc_Prob=Bin1Main.data[findInterval(Dev_Size,Bin1Main.data[,1])+1,2]
.
..
...
if (BinNumber==10)
Loc_Prob=Bin10Main.data[findInterval(Dev_Size,Bin10Main.data[,1])+1,2]
BinNumber is just referencing 1 of 10 sets of data so:
where BinNumber = 1 and Dev_S
Dear R users,
I have the following problem. Suppose I have the following toy data set:
> data
m1 m2 m3 m4 m5 state
[1,] 1 0 1 13 23 2
[2,] 0 1 0 23 94 2
[3,] 1 0 0 45 56 1
[4,] 0 1 0 35 84 2
[5,] 1 1 0 98 37 1
[6,] 1 1 0 68 1 2
where the
I'm working on Human Exon Array 1.0 ST. I'm getting normalized data
fine but I'm running into problems with QC. QCReport gives me the
following error:
> load(file= "huex10stv2cdf.rda")
> [EMAIL PROTECTED] <- "huex10stv2cdf"
> QCReport(exon.data, file = "QCReport.pdf")
Error in as.vector(an
(mean.std.s2n.loss.gain[[1]])
Probe.Set.ID rho_prime rho_prime_sd pom Expr1 matchinggenes
Meanstd_dev
29 SNP_A-190846347 2.47 0.75 0 PRKCZ
-0.345616170.13443676
30 SNP_A-213137044 2.61 0.58 0
(mean.std.s2n.loss.gain[[1]])
Probe.Set.ID rho_prime r ho_prime_sdpom Expr1
matchinggenes Mean std_dev
29 SNP_A-190846347 2.47 0.75 0 PRKCZ -
0.34560. 1344 30 SNP_A-213137044 2.61
22 matches
Mail list logo