search for: inputdata

Displaying 20 results from an estimated 23 matches for "inputdata".

Did you mean: input_data
2000 Apr 05
2
My first R-program
Sorry, I pasted the wrong file in earlier... this is the correct one: pValCalculator(b, n=20, m=20) { ind <- 1:min(c(n,m)) prob <- (1-pnorm(b,sd=std*sqrt(ind))) prob1 <- sum((n-ind+1)*(m-ind+1)*prob) prob1 } inputData <- scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1 = "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score = 0)); pVal <- vector(mode = "numeric", length(inputData$score)); for(i in 1:length(inputData$score)) pVal[i] <...
2005 Sep 09
2
Question about plotting discontinuous data
Hi, I have a simple question that I just cannot figure out. I have 2 corresponding columns of data, one column (X-axis) for time (formatted thus: 8:30:01am = 830.1, 12:30:05pm = 1230.5, and one column (Y-axis) for values. When I attempt to plot the data using something like plot(inputdata[,1],inputdata[,2],type="l"); I get breaks in the plot (since the time essentially jumps from 8:59:59am = 859.59 to 9:00:00am = 900.0). Essentially, I get the plot shape I want if I just plot the 'values' column using plot(inputdata[,2],type="l"); however, then I don'...
2009 Oct 14
2
attach
Hi all, I have a question regarding the memory usage for the attach function. Say I have a data.frame inputdat that I create with read.csv. I would like to know what happens on the memory side when I use attach(inputdata) Is there a second allocation of memory for inputdata? Then I'm using eval on a expression which depends on the columns of inputdata. Is it better not to use attach function? Thanks in advance Christophe -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.fr...
2005 Apr 08
2
DLL Memory Problem
...ells),qlsum(ncells),qilsum(ncells) real*8 pi2sum(ncells),pl2sum(ncells) real*8 qi2sum(ncells),ql2sum(ncells) real*8 covmatr(maxitem,maxitem),cormatr(maxitem,maxitem) real*8 covmatt(maxitem,maxitem),cormatt(maxitem,maxitem) real*8 sisl The R function that is calling it is as follows (inputdata is a 400x10 matrix of 0's and 1's in the example I have been trying). ccprox<-function(inputdata){ nexmn<-length(inputdata[,1]) nitem<-length(inputdata[1,]) covmatr<-matrix(0,100,100) covmatt<-matrix(0,100,100) cormatr<-matrix(0,100,100) cormatt<-mat...
2000 Apr 05
0
My first R program
...first R program, and I seem to not have grasped something right. I keep getting an error message from 'parse' on the line with the *** : pValCalculator(b, n=20, m=20) { ind <- 1:min(c(n,m)) prob <- (1-pnorm(b,sd=std*sqrt(ind))) prob1 <- sum((n-ind+1)*(m-ind+1)*prob) prob1 } inputData <- scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1 = "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score = 0)); pVal <- vector(mode = "numeric", length(lamaScore)); for(i in 1:length(inputData$lamaScore) ***** pVal[i] &l...
2012 May 11
0
NLS sensitivity to start= values or poles in data range
...contain three different options for the starting values. I thank you all in advance for any help or insights. Simplified code follows... Actual code for the interactive version is available at http://www.schrodingersghost.com/RationalFit-0.2.R # Start of Code # Read and plot the data InputData <- read.table("http://itl.nist.gov/div898/strd/nls/data/LINKS/DATA/Hahn1.dat", header=0, row.names=NULL, col.names=c("CTE","K"), skip=60) indvar <- 2 depvar <- 1 indvarname <- names(InputData)[indvar] depvarname <- nam...
2003 Feb 21
5
Problem Writeing a pipe using R (stdin is consumed)
Hi everybody, I a, trying to use R as a pipe like this: cat inputData | R --silent RCommandFile >outputData The RCommandFile would contain something like readLines(stdin()). I have tryed various things and none did work cleanly. One possible solution is to use the pipe() function inside R and to pass in the "cat inputData" however this is not very conv...
2013 May 17
1
[LLVMdev] Alignment attribute of function arguments
Hello everyone, Hopefully a simple question. How can I access function argument alignment information? If my code has something like this: void foo(short * __restrict __attribute__ ((aligned(8))) InputData){} ...as I deal with argument (InputData) can I get the alignment info set for it? Thanks! Sergei --- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
2018 Apr 12
2
R Timeseries tsoutliers:tso
....path(paste0(d.dir,"/zzz/"),FNAME,fsep = .Platform$file.sep), header = TRUE, stringsAsFactors = FALSE, showProgress = TRUE) %>% as.data.frame d.input$dummy_date <- as.Date(d.input$dummy_date, "%Y-%m-%d") selectedCols <- c("observation","dummy_date") inputData <- d.input[,selectedCols] outlier.types <- list("Additive Outliers","Levels Shifts","Seasonal Level Shifts","Innovation Outlier","Temporary Change") tsFrequency <- 52 params <- list("outlier.types" = outlier.types,"tsFrequ...
2010 Dec 02
1
Arrange elements on a matrix according to rowSums + short 'apply' Q
Greetings, My goal is to create a Markov transition matrix (probability of moving from one state to another) with the 'highest traffic' portion of the matrix occupying the top-left section. Consider the following sample: inputData <- c( c(5, 3, 1, 6, 7), c(9, 7, 3, 10, 11), c(1, 2, 3, 4, 5), c(2, 4, 6, 8, 10), c(9, 5, 2, 1, 1) ) MAT <- matrix(inputData, nrow = 5, ncol = 5, byrow = TRUE) colnames(MAT) <- c("A", "B", "C", "D", "E") rownames(MAT...
2018 Apr 13
0
Fwd: R Timeseries tsoutliers:tso
....path(paste0(d.dir,"/zzz/"),FNAME,fsep = .Platform$file.sep), header = TRUE, stringsAsFactors = FALSE, showProgress = TRUE) %>% as.data.frame d.input$dummy_date <- as.Date(d.input$dummy_date, "%Y-%m-%d") selectedCols <- c("observation","dummy_date") inputData <- d.input[,selectedCols] outlier.types <- list("Additive Outliers","Levels Shifts","Seasonal Level Shifts","Innovation Outlier","Temporary Change") tsFrequency <- 52 params <- list("outlier.types" = outlier.types,"tsFrequ...
2000 Jan 07
0
VQ generation utilities ready + usage instructions
...in is used for LSP data, residuevqtrain for residue (not yet checked in; we're still playing with it :-). genericvqtrain is a generic trainer that trains based on a mean squared error. each trainer takes the same command line syntax (run with no args to see it): xxxxvqtrain basename [options] inputdata.vqd [options] [inputdata.vqd]... ...to train a set from scratch or: xxxxvqtrain basename-n.vqi [options] [inputdata.vqd]... ...to continue training a set 'basename' is used as the root name for theoutput file. In the case of a new set, the file produced is basename-0.vqi (the output is a...
2009 Nov 19
1
problem post request with RCurl
...nse. More importantly, the verbose option shows: > Accept: */* > Content-Length: 1227 > Content-Type: application/x-www-form-urlencoded However, when I try to do this via RCurl, the data doesn't seem to get sent: q <- "<PCT-Data> <PCT-Data_input> <PCT-InputData> <PCT- InputData_query> <PCT-Query> <PCT- Query_type> <PCT-QueryType> <PCT- QueryType_qas> <PCT- QueryActivitySummary> <PCT- QueryActivitySummary_output value=\"summary-t...
2012 Jul 09
4
Skipping lines and incomplete rows
...0.01 0.001 20 0.2 0.02 0.002 30 0.3 0.03 0.003 40 0.4 0.04 0.004 ******************************************* I tried using read.table with skip for line 1-3 as follows inputData <- read.table("test.txt",sep = ";",skip = 3) but the line 4 is creating problem with the following error: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 3 did not have 585 elements Can someone help me with this? Thank you. Ravi --...
2011 Aug 03
2
convert a splus randomforest object to R
...data.restore("cost.rf.txt") it works fine and able to restore the "cost.rf" object. But when I try to pass a new data through this randomforest object using predict() function, it gives me error message. in R: library(randomForest) set.seed(2211) pred <- predict(cost.rf, InputData[ , ]) Error in object$forest$cutoff : $ operator is invalid for atomic vectors Looks like after restoring the dump file, the object is not compatible in R. Have anyone successfully converted a splus randomforest object to R? what will be the appropriate method to do this? Thanks in advance. Ji...
2003 Jul 10
2
please help on frag polynoms
...on the topic of frag polynoms? i just heard of a friend of mine, that i could build in a functioon called fragpoly (he was talking of such a function in the 'stata' language) in order to improve my process of finding an optimal linear model. instead of trying a vast amount of transformed inputdata to find the best fit and then step backwards down to e.g. rank 5 in order to get a smooth curve, i could start right from the beginning with only very few but therefore very flexible funktions (litle similar to box-plot) which adopt themselve automaticaly to an optimal fitt and r-squered. can anyo...
2011 Jan 20
1
fix sign of a coefficient in formula
Dear R users & experts, I'd like to create a model using lm (or glm) under some constraints of how coefficients for each component could look like (sort of a range of coefficients that should be allowed). So let's go for an example : model=lm(age ~ eyecolor + height, data=inputdata) So let's suppose that R pops out a model with positive estimates for the coefficients eyecolor and height, I have to use them as is. But however, if I'd like to produce a model that follows that behaviour : age = A*eyecolor - B*height having A>0 and B>0 how can I achieve that? I r...
2009 Apr 16
2
Reading in a large number of dbf files
good morning This question is not a stats question per say but a data management and lattice plotting problem. I apologize now if I'm asking an inappropriate question to this gracious group. I'm need to bring in approximately 100 *.dbf files into R but I'm having difficultly understanding several examples I've tracked down regarding this procedure and could benefit from your
2010 Mar 03
1
List of zoo dataframes
...I can run a batch of statistical analyses on them. I also want to have the specification of the analysis on a list of some sort as well. For example: List "a" has 3 zoo data sets and list "b" has 2 specifications (calls) for a function (say, "analysis(specification, inputdata)" ) that runs some statistical manipulations (regressions, nonlin models, etc. etc.) on the elements of the zoo data frames. Thus I want to be able to run (this is pseudo R code): for (i in 1:3) { output1<-analysis(b[1], a[i]) output2<-analysis(b[2], a[i]) } Thanks in advance for an...
2010 Aug 31
2
Error: cannot allocate vector of size 198.4 Mb
...ror: cannot allocate vector of size 198.4 Mb" ------------------------------ I've tried with: > memory.limit(size=2047); [1] 2047 > memory.size(max=TRUE); [1] 12.75 > library('RODBC'); > Channel<-odbcConnectAccess('c:/test.MDB'); # inputdata:15 cols, 2000000 rows, 173 MB > x<-sqlFetch(Channel,'data1'); > odbcCloseAll(); > gc(TRUE) Garbage collection 69 = 2+2+65 (level 2) ... 3.6 Mbytes of cons cells used (38%) 183.8 Mbytes of vectors used (36%) used (Mb) gc trigger (Mb) max used...