search for: nonumeric

Displaying 6 results from an estimated 6 matches for "nonumeric".

Did you mean: nonnumeric
2010 Apr 19
5
dataframe
Hi all, I'm trying to load a csv file in which all the variables must be of type number.The object is a dataframe.When i load the file what i get is a dataframe in wich the variables are of type factor.How can I get variables of type number??? Thanks all
2013 Oct 27
2
numeric data being interpreted as a factor -trouble with reading data into a dataframe in R
Hello. trying to do one of the simplest actions -read in data into R. I don't know why the FBfollowers column is being read as a factor and also if I use as.numeric on it, it looks really strange and actually complety alters the data. I am attaching the data set here called ddd.csv I used data=read.csv("ddd.csv",header=TRUE) fb=data$FBfollowers fb fb=as.numeric(fb) fb Thnxs in
2007 Oct 24
3
convert factor dataframe into numeric matrix
Bear me if this is a naive question. I have a dataframe, all lists inside it are factors. When I use as.matrix(df) to convert, I get a character matrix while my intention is to get numeric matrix. I can make the convertion iteratively by each list but I do think there is some more elegant way of doing this. please let me know if I missed somthing there. Thanks in advance. Sun
2012 Jan 09
3
as.numeric() generates NAs inside an apply call, but fine outside of it
Hello- I have rather a messy SPSS file which I have imported to R, I've dput'd some of the columns at the end of this message. I wish to get rid of all the labels and have numeric values using as.numeric. The funny thing is it works like this: as.numeric(mydata[,2]) # generates correct numbers however, if I pass the whole dataframe at once like this: apply(mydata, 1:2, function(x)
2012 Nov 16
10
about lm
Dear friends, I have a csv file entitled ven.csv located in C:\\, this file contains only two columns:"ve" and "su" I have written the following lines: data=read.csv("c:\\ven.csv",header=TRUE,sep=";"); lm(ve~ su) I have obtained the following message: Error in eval(expr, envir, enclos) : object 've' does not exist. What's the problem? thank
2013 Oct 20
3
Errore : requires numeric/complex matrix/vector arguments
Dear R users,I'm a new user of R. I'm trying to do a LM test an there is this type of error: Error in t(mX) %*% mX : requires numeric/complex matrix/vector arguments. To be clear I write down the code in which mY ( 126,1 ) mX (126,1) mZ(126,1) are matrix. LMTEST <- function(mY, mX, mZ)#mY, mX, mZ must be matrices!#returns the LM test statistic and the degree of freedom{iT =