search for: a_data

Displaying 7 results from an estimated 7 matches for "a_data".

Did you mean: i_data
2009 Sep 25
1
if else and loop for code in R
I am using if else and loop to sortout the data set that is the values less than o or more than 100 will be chosen.I could not get outTable with loop. Please help me to correct the code: I USED: # Read a_data <- read.table("D:/SNP/copy.sas", header=T, sep="\t") tr <- a_data$truck ca <- a_data$cars length <- nrow(a_data) outTable <- matrix(nrow=length,ncol=3) stat <- for (i in 1:length) { if (tr<0) {0} else if (ca>100) {0}else {ca} outTable <- c(i, stat, tr...
2012 Jun 01
1
How to make a transaction class data?
Hi, I have encounter a problem that my data a_data.frame is of data.frame class with columns: sequenceID, eventID, items. when I convert it to transaction class: as(a_data.frame, "transactions") All columns are grouped together under items, which is like this: {sequenceID, eventID, items} instead of the right form: sequenceID, eventID...
2003 Apr 26
1
predict/residual
...residual in a new data frame. >From the example below, the NAs are displayed when predicting inside the original frame, but are dropped when applied to a new frame. ultimately I need to cbind the residuals and predictions to a dataframe. Any help would be appreciated. Thanks in advance. > a_data.frame(y=rnorm(10),x=rnorm(10)) > m<- lm(y~x,data=a,na.action=na.exclude) > a_data.frame(y=rnorm(10),x=rnorm(10)) # CREATE A MISSING VALUE > a[5,2]<-NA > m<- lm(y~x,data=a,na.action=na.exclude) > predict(m) 1 2 3 4 5 6...
2001 Oct 22
1
No subject
Dear all, I may have overlooked something but the following piece of code causes me trouble: > a_data.frame(1:4) > a X1.4 1 1 2 2 3 3 4 4 > apply(a,2,cat) 1 2 3 4Error in ans[[1]] : subscript out of bounds > apply(a,1,cat) 1234NULL Is this the fact my data.frame has only one dimension ? (and do I forget somewhere (but where ?) to specify not to 'drop' dimension or s...
2002 May 01
1
compiling R-1.5.0, package methods, on Solaris 5.7
...9;methods' ../../../library/methods/man/methods.Rd is unchanged making do_substitute_direct.d from do_substitute_direct.c [...] gcc -I../../../../include -I/usr/local/include -fPIC -g -O2 -c slot.c -o slo t.o gcc -G -o methods.so do_substitute_direct.o methods_list_dispatch.o method_met a_data.o slot.o dumping R code in package 'methods' initializing class and method definitions now ...Error in .Call("R_missingArg", if (eval) symbol else substitute(symbol), : .Call function name not in load table Execution halted *** Error code 1 make: Fatal error: Command fail...
2014 Dec 10
2
[LLVMdev] NEON intrinsics preventing redundant load optimization?
On 9 Dec 2014, at 02:20, Jim Grosbach <grosbach at apple.com> wrote: >> On Dec 8, 2014, at 1:05 AM, Simon Taylor <simontaylor1 at ntlworld.com> wrote: >> >> On 8 Dec 2014, at 00:13, Renato Golin <renato.golin at linaro.org> wrote: >> >>> On 7 December 2014 at 19:15, Simon Taylor <simontaylor1 at ntlworld.com> wrote: >>>> Is
2006 May 18
5
Overriding default DELETE behavior with logical deletes
Hello! I am trying to figure out how to implement *logical deletes* instead of physical deletes using ActiveRecord. Basically, in many applications that deal with E-Commerce, you really can''t physically delete almost anything, because records must be kept for auditing and customer service tracking purposes. In the past, I''ve implemented logical deletes as follows: 1.