similar to: converting data.frame into a numeric ( integer) form

Displaying 20 results from an estimated 600 matches similar to: "converting data.frame into a numeric ( integer) form"

2011 Apr 18
0
error message while running IRT model
I have been struggling with the same problem for the past few hours and am desperately in need of some help. The code I am running is as follows: ## opening a data set on the desktop setwd("C:/Users/haillie/Desktop") UN2010<- read.csv("UN2010.csv",header=TRUE) ##calling libraries library(reshape) library(car) ## these are the variables I want to recode colname <-
2012 Jun 15
0
MCMCfactanal inquiries
Dear list, Hi, I am emailing to see if it would be possible to get some help on running MCMCfactanal on R. I am trying to derive a single score measuring a likelihood to recieve IMF loans from 8 different variables related to IMF representation but for reason, my codes do not seem to take me to where I want to be. For some reason my code drops certain rows ( countries) automatically, making it
2011 Mar 16
2
Saving summary outputs in a table form
Dear R help, Is there a way to extract a variable ( one column) from my summary statistics to save it in a table form? My post-factor analysis summary statistics gave me the output below. Is there anyway to just save the mean of all the phi? The filename of this summary output is postun2010sum. Also is there a way to just save phi(,2) or phi(,3) in a table form on my desktop? Any help would be
2009 Aug 09
1
problem adding columns to matrix
Hi all, i purchased a copy of the book Morphometrics with R by Springer. at the end of each chapter there are exercises to train what you just read and (hope) learned... so i have this problem: Define a hypothetical data frame containing five measurments normally distributed(size,head,pectoral,area,weight) for four individuals (named ind1, ind2, etc). ADD A COLUMN corresponding to the
2013 Nov 04
2
Fwd: recodificar variables
Buenas noches, mi pregunta es tal vez sencilla. tengo esta libreria y estos datos library(nlme) data(MathAchieve) Infoest = MathAchieve en esta base quiero contar la cantidad de casos en la que la columna Sex, toma el valor Female, como puedo hacerle el filtro para ver solo los Females. y como puedo dentro del mismo conjunto de datos agregar la variable numerica que me cuente 1 si es Female y 0
2004 Jan 12
1
extract data from a data.frame
Hi, I'm reading part of a table from postgres, so I'm getting a data frame. how can I extract the numerica values so I can operate on them. > res <- dbGetResult(mydata) > str(res) `data.frame': 5 obs. of 8 variables: $ cyx.1: num 0.149 -0.278 0.114 0.060 0.109 $ cyx.2: num 0.158 -0.070 0.063 0.149 0.150 $ cyx.3: num 0.052 -0.350 0.114 0.126 0.238
2017 Aug 03
2
problema al transformar columna tipo "factor" a tipo "numeric" en data.table
Creo que el problema es que cuando lo pasas directamente a numeric el toma los niveles para transformarlos. Los factores tienen sus niveles con sus etiquetas, digamos, que es lo que vemos nosotros. Por ejemplo machos y hembras puede ser lo que vemos mientras que internamente los niveles son 1 y 2. Si fuera ese el problema yo lo resuelvo transformando primero en character y luego a numeric.
2012 Oct 02
1
Parametric effects in GAM
Hello! Can anyone give a tip how to plot parametric effects in an Generalized Additive Model, from mgcv package? Thanks, PM
2017 Aug 02
2
problema al transformar columna tipo "factor" a tipo "numeric" en data.table
Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20170802/366301a6/attachment.html>
2011 Aug 31
6
Weights using Survreg
Dear R users, I have been trying to understand what the Weights arguments is doing in the estimation of the parameters when using the Surreg function. I looked through the function's code but I am not sure if I got it or not. For example, if I inclue the Surv function in it: survreg(Surv(vector, status)~1,weights=vector2,dist="Weibull") will it try to maximize the likelihood with
2012 Feb 13
1
Problem with libpri / asterisk
Hi all ! We currently have an asterisk box that is rather old (runs Asterisk 1.4.21.2), and it's connected to the PSTN with a sangoma A104d card. Now we have a new PRI at another location, and I use that occasion to build 2 new servers, one to replace our aging one and a new one for this new pri. So I downloaded the lastest libpri / asterisk / wanpipe driver, but the previous version of
2003 Jun 25
3
Help
hi my name is Tomer,im using R version 1.4 i've encontered a couple of problems with my my R programing. 1. i cant understand what is the whights in the nnet$wts command(which weight fit to the nodes). 2.my OS is Windows XP , i want to operate R from the command line and i want it to operate a file automaticly(the commands written in a text file) ,is it possible?( i know that in unix it
2017 Jan 17
2
SOLVED(aproximative?): Difficulties with Windows XP: failed to find cifs/fileserver.y.z@Y.Z in keytab (arcfour-hmac-md5)
Samba - General mailing list wrote > On Mon, 16 Jan 2017 09:07:35 -0800 (PST) > rawi via samba &lt; > samba at .samba > &gt; wrote: > >> Samba - General mailing list wrote >> >> [2017/01/11 16:42:34.522067, 1] >> >> ../source3/librpc/crypto/gse.c:496(gse_get_server_auth_token) >> >> gss_accept_sec_context failed with [
2009 Feb 13
3
Problem with read/write access
I configure Samba in Share mode, I can see the files but i can't write/delete files in the directory "agenda" The directory /o/aplic/NACSEG/agenda have this permission drwxrwxr-x and the owner and group is agendaglm nobody I have all valid users in the smbpasswd and /etc/passwd This is the smb.conf...........................THANKS! [global] workgroup = GLMSA server
2013 Nov 04
0
Fwd: recodificar variables
Hola Alexander. Para filtrar y obtener el subconjunto que necesitas, puedes hacerlo de la siguiente (una de ellas) manera: > Female <- subset(MathAchieve, subset=Sex=="Female") Crear una nueva variable recodificando "Sex" puedes hacerlo así: > Sex_recode <- Recode(MathAchieve$Sex, '"Female"=1; "Male"=0; ;', as.factor.result=TRUE) >
2001 Aug 14
2
fixup_imports No implementation for NTDLL.DLL
Hi, I am a newbie and I have installed Wine release 20000909 on a machine running Mandrake7.2 and win2000. The DefaultLoadOrder for the DLLs are builtin, so, native & elfdll. LD_LIBRARY_PATH and EXTRA_LD_LIBRARY_PATH points to the directory containing the lib*.so files. I encontered the following errors while running a place & route tool.
2017 Jan 17
2
SOLVED(aproximative?): Difficulties with Windows XP: failed to find cifs/fileserver.y.z@Y.Z in keytab (arcfour-hmac-md5)
Samba - General mailing list wrote > On Tue, 17 Jan 2017 03:03:28 -0800 (PST) > rawi via samba &lt; > samba at .samba > &gt; wrote: > >> Samba - General mailing list wrote >> >> Rowland, thank you >> >> Please note the comments starting with two '#'. They give info about >> erroneous behavior I encontered. >> >>
2011 Jun 05
1
conditions simpler way
Dear All, I have a MCMC result in x1. I was wondering if there is a simpler, more elegant way of evaluating the estimate of an integral then this (I am pretty sure there is): Also if I want to count the x's say -1<x<2 but not the ones in the burn in period. [code] z <- -2 burnin <- 2000 int1 <-
2010 May 20
1
Geneland error on unix: Error in MCMC(........ :, unused argument(s) (ploidy = 2, genotypes = geno)
I am receiving the above error ( full r session output below) the script runs OK in windows. and "genotypes" and "ploidy" are both correct arguments any suggestions would be most welcome Nevil Amos MERG/ACB Monash University School of Biological Sciences > library(Geneland) Loading required package: RandomFields Loading required package: fields Loading required
2011 Feb 24
2
MCMCpack combining chains
Deal all, as MCMClogit does not allow for the specification of several chains, I have run my model 3 times with different random number seeds and differently dispersed multivariate normal priors. For example: res1 = MCMClogit(y~x,b0=0,B0=0.001,data=mydat, burnin=500, mcmc=5500, seed=1234, thin=5) res2 = MCMClogit(y~x,b0=1,B0=0.01,data=mydat, burnin=500, mcmc=5500, seed=5678, thin=5) res3 =