similar to: Convert data set to data frame

Displaying 8 results from an estimated 8 matches similar to: "Convert data set to data frame"

2008 Oct 06
2
match() (PR#13135)
Full_Name: Willa Chen Version: 2.7.2 OS: Window XP Submission from: (NULL) (128.122.182.70) The match function does not return value properly. See an example below. > a<-seq(0.6,1,by=0.01) > match(0.88,a) [1] 29 > match(0.89,a) [1] NA > match(0.90,a) [1] NA > match(0.91,a) [1] NA > match(0.92,a) [1] NA > match(0.93,a) [1] NA > match(0.94,a) [1] 35
2008 Jul 14
3
Data Manipulations and SQL
Greetings, I am new to R and have some background knowledge about SQL. I'd like to know whether there is a way to manipulate the R datasets (or data frames) using SQL statements. For example, I have two data frames and both of them have a column called "id", then I want to join this two data frames into one. In SQL, we can just simply use the join comment. What should we do in R?
2008 Jun 12
1
Data.matrix fail to convert data.frame into matrix
Hi, With the following codes, I attempt to convert the data.frame into a matrix. However I notice that data.matrix function doesn't seem to work. __ BEGIN__ dat <- read.table("mydata", comment.char = "!" , na.strings = "null"); # Select n-genes by random sample # n = 1 nosamp <- 1 geneid <- sequence(nrow(dat)) geneid.samp <- sample(geneid,nosamp)
2011 Aug 15
3
Help on how to use predict
Dear R-Users My problem is quite simple: I need to use a fitted model to predict the next point (that is, just one single point in a curve). The data was divided in two parts: identification (x and y - class matrix) and validation (xt and yt - class matrix). I don't use all values in x and y but only the 10 nearest points (x[b,] and y[b,]) for each regression (b is a vector with the
2011 Mar 25
1
Matching package - Match function
Hi. I am using the Matching package for propensity score matching. For each treated unit, I want to find all control units whose propensity scores lie within a certain distance from the treated unit. The sample code is as follows: > library(Matching) > x <- rnorm(100000) > y <- rnorm(100000) > z <- rbinom(100000,1,0.002) > logit.reg <-
2018 Jan 16
2
Eaton 5PX after battery replacement still says "replace battery" in NUT
Hi, This might be a simple thing to fix, but I can?t figure it out. We replaced the battery for the first time in our Eaton 5PX a couple of weeks ago, but we haven?t been able to clear the ?ups.alarm: replace battery!? status. Details of our installation are: OS: Debian 6 NUT version: 2.7.4 Installation method: from source tarball UPS device: Eaton 5PX2000IRT, 240V, 1800W, 2000VA, bought in
2011 Nov 11
2
Estimating IRT models by using nlme() function
Hi, I have a question about estimating IRT models by using nlme, not just rasch model, but also other models. Behavior Research Methods <http://www.springerlink.com/content/1554-351x/> Volume 37, Number 2 <http://www.springerlink.com/content/1554-351x/37/2/>, 202-218, DOI: 10.3758/BF03192688 Using SAS PROC NLMIXED to fit item response theory models (2005). Ching-Fan
2011 May 05
1
Question about error of "non-numeric argument to binary operator"
I have been trying to do a nls model and gives me the error of a nonnumeric argument table(file="c:/tt2.txt",header=T) > fit.model <- nls(TT~60*(1+alpha*(v/c)^beta),data=tt2, start=list(alpha=1, beta=3, v=1000)) Error in v/c : non-numeric argument to binary operator > is.numeric(tt2) [1] FALSE > is.character(tt2) [1] FALSE > as.numeric(tt2) Error: (list)