similar to: how to find out whether a string is a factor?

Displaying 20 results from an estimated 100 matches similar to: "how to find out whether a string is a factor?"

2011 Jul 05
1
hash table access, vector access &c
Hi, I am confused by the way the indexing works. I read a table from a csv file like this: ysmd <- read.csv("ysmd.csv",header=TRUE); ysmd.table <- hash(); for (i in 1:length(ysmd$X.stock)) ysmd.table[ysmd$X.stock[i]] <- ysmd[i,]; the first column ("X.stock") is a string (factor): > ysmd$X.stock[[100]] [1] FLO 7757 Levels: A AA AA- AAAAA AAC AACC AACOU AACOW AADR
2006 Sep 26
0
Not all functions work in RSPerl package?
Hi, Prof Duncan I am sorry to report to a wrong place. But I am lucky to meet you by chance, right? Thanks first ^^ 1. The variable y1 is an array get from Perl, each element is from a database (the type should be numeric). Here is the code for that. $query = qq{ select exonCount, count(hsEnsGene) as geneCount from countTop1000ks group by exonCount order by exonCount;
2006 Sep 26
0
Not all functions work in RSPerl package?
Hi, Prof Duncan I am sorry to report to a wrong place. But I am lucky to meet you by chance, right? Thanks first ^^ 1. The variable y1 is an array get from Perl, each element is from a database (the type should be numeric). Here is the code for that. $query = qq{ select exonCount, count(hsEnsGene) as geneCount from countTop1000ks group by exonCount order by exonCount;
2012 Aug 07
0
predicting test dataset response from training dataset with randomForest
Hi I am new to R so I apologize if this is trivial. I am trying to predict the resistance or susceptibility of my sequences to a certain drug with a randomForest function from a file with amino acids on each of the positions in the protein. I ran the following: > library(randomForest) > > path <- "C:\\..." > path2 <- "..." > name <-
2011 Aug 20
2
a Question regarding glm for linear regression
Hello All, I have a question about glm in R. I would like to fit a model with glm function, I have a vector y (size n) which is my response variable and I have matrix X which is by size (n*f) where f is the number of features or columns. I have about 80 features, and when I fit a model using the following formula,? glmfit = glm(y ~ x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12 + x13
2011 Dec 15
2
Data Manipulation - make diagonal matrix of each element of a matrix
Dear R list, I have the following data: set.seed(1) n <- 5 # number of subjects tt <- 3 # number of repeated observation per subject numco <- 2 # number of covariates x <- matrix(round(rnorm(n*numco),2), ncol=numco) # the actual covariates x > x [,1] [,2] [1,] -0.63 -0.82 [2,] 0.18 0.49 [3,] -0.84 0.74 [4,] 1.60 0.58 [5,] 0.33 -0.31 I need to form a matrix
2005 Feb 23
0
Excessive file traffic when viewing Printer Properties with 3.0.11
List, I have a printer on a BDC at the other end of a VPN tunnel, and updating the printer properties (such as loading additional driver files or configuring the paper size) of a printer that is installed on it is very slow, on the order of half an hour for basic operations. Just opening the properties dialog box results in all the driver files for the printer being read. Many times. Very slowly.
2004 Jul 14
1
Rsync Problems, Possible Addressed Bug?
I got this mail from a cronjob and can't figure out what is causing rsync to crap out on me. I received the message at 5:03, when the cron job is scheduled to run at 4:00, so total runtime is approximately an hour. Machine that is fetching the files is a low-end G3 running Yellowdog 3.01, rsync --version 2.5.5. It has only 128 megs of ram, but isn't doing anything else. Transfers are
2008 Oct 21
2
Only one joystick of two activated
Hi, I am always using the newest Wine snapshot on OpenSUSE 10.3 x86_64. My two USB-joysticks (js0, js1) - which are pedals and joystick - work without problems with all native Linux simulations like FlightGear, Torcs, etc. It is a big pity that with Wine only the first joystick is activated, no matter which order I use, because with Wine all my old Windows simulations work without problems.
2018 Mar 14
2
truncation/rounding bug with write.csv
I don't see the issue here. It would be helpful if people would report their sessionInfo() when reporting whether or not they see this issue. Mine is > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Arch Linux Matrix products: default BLAS/LAPACK: /usr/lib/libopenblas_haswellp-r0.2.20.so locale: [1] LC_CTYPE=en_US.UTF-8
2011 Dec 27
1
Practicality of fixing samba's case mangling problems?
Samba has multiple areas of case mangling problems that cause incompatibilities when used with windows or linux clients. How viable is the idea of fixing the problems? Would the sky fall in if it preserved case, but either 'ignored it', or gave preference to matches that included the case as typed (vs. alternate case matches). The first would be fairly compatible with current Win
2004 May 11
1
calling data frames
Dear List, I've around 1000 *.txt files, I've generate with other software. I've now done the following code (below). My question is how can I automate this (with do.call () ?), so it could be done for all the *.txt files. Thanks in advance, Rog??rio names<- list.files() file <- "BLU_Var_%04d.txt" for(i in 1:1000){
2018 Mar 14
2
truncation/rounding bug with write.csv
To my surprise, I can confirm on Windows 10 using R 3.4.3 . As tail is not recognized by Windows cmd, I replaced with: system('powershell -nologo "& "Get-Content -Path temp.csv -Tail 1') The last line shows only 7 digits after the decimal, whereas the first have 15 digits after the decimal. I agree with Dirk though, 1.6Gb csv files are not the best way to work with
2010 May 11
1
Help with Names
Hi - a newbie question, if someone can please help.... I want to change X1, X2,,.....to X.1 X.2 etc in the names below. I am using the Principal Component Regression function (pcr) and it seems to want it this way > datap3.pcr <- pcr(water ~ X, 10, data = datap3, Validation ="cv") Error in model.frame.default(formula = water ~ X, data = datap3) : invalid type (list) for
2008 Oct 27
4
Generating 1.2rc1 DLLs with MSVC 2005
Dear all, In the download section of the Speex web site, you can find the Windows DLLs until the 1.2beta2 version, but for the newest version 1.2rc1 there aren?t any available. Therefore, I?m trying to generate the Windows DLLs for the 1.2rc1 version using the MSVC 2005 project files available in the source code. After a lot of problems, finally I have generated the DLLs. However there is a
2018 Mar 14
2
truncation/rounding bug with write.csv
Hello, I have looked on https://www.r-project.org/bugs.html , but it seems that this is the only way to do it. The issue is that the precision used by write.csv is on consistant for big files. See the following code: First I create a large dataframe filled with random uniform values. Then I write it to .csv and print out the first and last lines. df = data.frame(replicate(100, runif(1000000,
2023 Jan 30
0
Covid Mutations: Cumulative?
Dear R-Users, Did anyone follow more closely the SARS Cov-2 lineages? I have done a quick check of Cov-2 mutations on the list downloaded from NCBI (see GitHub page below); but it seems that the list contains the cumulative mutations only for B.1 => B.1.1, but not after the B.1.1 branch: # B.1 => B.1.1 seems cumulative diff.lineage("B.1.1", "B.1", data=z) # but B.1.1
2013 Apr 12
2
model frame and formula mismatch in model.matrix()
Hello everyone, I am trying to fit the following model All X. variables are continuous, while the conditions are categoricals. model <- lm(X2
2018 Mar 14
0
truncation/rounding bug with write.csv
My apologies for not including sessionInfo(), and I'm a bit angry at myself for that. Retrying in a fresh session of R, I get different results. More specifically, I get the expected result where accuracy is the same in the first and the last line. As I didn't include my sessionInfo() in my previous mail, I can't figure out why I now have a different result. So I'm positive
2005 Oct 09
1
Simple Sudoku - not minimising/letting me do anything else
I have installed Simple Sudoku (http://www.angusj.com/sudoku/index.php) but I cannot minimise it, nor go to another screen to do something else. If I try, its window gets larger, vertically. I am using wine 20050725 (which is what is packaged for my system at present), on a Debian system running XFree86, with icewm-gnome. Can anyone advise why this program "hogs attention"? -- Phil