similar to: Setting the Number of Columns

Displaying 20 results from an estimated 60000 matches similar to: "Setting the Number of Columns"

2002 May 21
2
Unwanted Levels in R
I searched the mailing list archives and found one post relevant to my problem, but it was not specific enough to solve my problem. I am reading in a large file of data (I believe it is in ASCII format). I have tried reading the file in as a data frame and as a list, and both methods result in unwanted levels being created which leads to problems when I try to copy or reference certain cells.
2002 Jun 12
4
Opening all files in a directory
Is there any way that R can be programmed so that it will cycle through all files in a directory without having to define file names? The reason I ask is because I will have about 50-100 files in a directory which will be randomly named. ie: MIDEX, OACES-CO2, ODEN91, etc... If not...are there any languages out there that will do this sort of things? Or is there another method you could
2013 Jan 17
2
How can i keep only latest entries?
Hello togehter, i have a data.frame like this one: No. Date last change 1 1 2012-10-04 change settings 2 1 2012-10-20 bug fix 3 1 2012-11-05 final 4 2 2013-01-15 new task 5 2 2013-01-16 Bug fix 6 2 2013-01-17 final now i want a new data.frame, who show me only the newest entries according to the No. The solution look like
2008 Jun 05
1
warning message for lmer model with poisson family
Hello, I'm trying to run an lmer model with family poisson but receive the following warning message: model<-lmer(count~tem+dat+alt+year+tem:dat+tem:alt+tem:year+dat:alt+dat:year+alt:year+(1|id),family=poisson) Error in objective(.par, ...) : Leading minor of order 2 in downdated X'X is not positive definite I'm using the newest version of R and recently installed the
2006 Mar 10
4
many servers and mobile users - "always use the most fresh user profile" - ideas?
I have a situation like below: Samba servers in many cities; one "backup" server in the central location that fetches user profiles each night (changes really with rsync). Users work in many locations; sometimes one user can work in city A, and a day later he can work in city B. This means that they have problems with their profiles - user profile for city A will be different from
2013 Mar 03
4
Help searching a matrix for only certain records
Let me start by saying I am rather new to R and generally consider myself to be a novice programmer...so don't assume I know what I'm doing :) I have a large matrix, approximately 300,000 x 14. It's essentially a 20-year dataset of 15-minute data. However, I only need the rows where the column I've named REC.TYPE contains the string "SAO " or "FL-15". My
2004 Jul 26
3
Read SPSS data (*.sav) in R 1.8.0 (ok) and R1.9.1(error)
Hallo! I read SPSS data in the following way: library(Hmisc) library(foreign) dat<-spss.get("surv_abb.sav") In R1.9.1 I got the message: "Error in all(arg == choices) : Object "typeDate" not found" In R1.8.0 the same script works fine. Does anybody know a possibilty to read a SPSS file under R1.9.1? Thanks! Karl
2009 Nov 03
1
likely bug in 'serialize' or please explain the memory usage
Hi all, assume the following problem: a function call takes a function object and a data variable and calls this function with this data on a remote host. It uses serialization to pass both the function and the data via a socket connection to a remote host. The problem is that depending on the way we call the same construct, the function may be serialized to include the data, which was not
2018 May 10
3
Fill down a new column in data frame with a number
Hi, I am a begginer in R programming. I am traying to create a a column in my data frame filled down with a number. > df$newcolumn <- number How can I do it? I am considering use rep() but in this case it is necessary know the number of rows in each data base that I have and I would like to do it in a faster ( and more elegant) way. TKs [[alternative HTML version deleted]]
2009 Jun 06
2
A very frustrating read.table error message
Dear Colleagues, Occasionally I deal with computer-generated (i.e., websurvey) data files that haven't quite worked correctly. When I try to read the data into R, I get something like this: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 26 did not have 648 elements ...is there any way to get R to tell me how many elements line 26 *did* have? That
2004 Aug 26
1
library(car) Anova() and Error-term in aov()
Dear all, Type III SS time again. This case trying to reproduce some SPSS (type III) data in R for a repeated measures anova with a betwSS factor included. As I understand this list etc, if I want type III then I can do library(car) Anova(lm.obj, type="III") But for the repeated measures anova, I need to include an Error-term in the aov() call (Psychology-guide from Jonathan Baron)
2004 Dec 30
2
graphics
Dear R-user, I am a R beginner, and therefore my questions are very basic. I have a simple problem: I would like to plot 100 time series each containing 55 steps. The data are stored in a matrix of 100 columns and 55 rows. The first problem is to load the data from a file: I tried the read.table(), the scan() and the matrix(scan()) options, but I have problems to allocate the single columns.
2007 Jul 13
1
Choosing the number of colour breaks in ggplot2
A seemingly simple problem has me stumped. Is it possible to choose the number of colour breaks for a gradient scale in the current version of ggplot2? Here is a simple example: --------------------------------------------- x=-10:10 y=-10:10 dat=expand.grid(x=x,y=y) dat$z=dat$x^2+dat$y^2-100 ggplot(dat, mapping=aes(x=x, y=y, fill=z)) + geom_tile() + scale_fill_gradient2()
2005 Aug 18
4
problems when installing R in Fedora core 4
Hi, I got a problem when installing R in Fedora core 4. When I ran .configure, it gave the following error message: configure: error: --with-x=yes (default) and X11 headers/libs are not available Could anyone tell me what's wrong? Am I missing some package in Fedora? Thanks a lot for your help. Peter
2019 Sep 19
2
Should slot<-() alter its first argument?
We noticed that the slot<- function alters its first argument, which goes against the grain of a functional language. The similar @<- does not change its first argument. Is this intended? The timeSeries and distr package depend on this altering. > setClass("Z", rep=representation(x="character")) > z <- new("Z", x="orig") > `@<-`(z,
2005 Apr 06
7
off-topic question: Latex and R in industries
Latex and R are really cool stuff. I am just wondering how they are used in industry. But based on my own experience, very rare. Why? How about the opinion of other listers? Thanks.
2019 Nov 28
6
Xen Version update policy
Hey all, This mail has been a long time in coming, but with the upcoming expiration of security support for Xen 4.8, it's time to start thinking about what our update policy will be for the Xen packages in general. Citrix is committed to officially supporting one Xen version at a time through the CentOS Virt SIG. (Others in the community are welcome to support others.) But we'd like
2015 Jun 19
2
Samba upgrade issue . . .
On 06/16/2015 04:57 AM, L.P.H. van Belle wrote: > Ok Steve, > > Now its time to edit the status file of the packages. > make a backup of : /var/lib/dpkg/status > open it with an editor. > search for "Package samba" , you probly see" installed ok not-configured. > and change status to : Status: install ok installed > > after the change run : apt-get -f
2001 Jun 09
3
spss-data import
Hello, at the moment i am using spss as my favorite statistics package, but R seems an atractive alternative. Thanks to the R-Team for their great work! (I use R on my windows98 laptop,P II and 64MB Ram). I have a big(?) data set, containing more than 470 variables and 3200 cases (size: 2.5MB). Whenever I use the command 'read.spss' (foreign-library), I got the the following
2009 Aug 09
3
howto get the number of columns and column names of multiply data frames
Hi, I' ve read in several files with measurements into R data frames(works flawlessly). Each dataframe is named by the location of measurement and contains hundreds of rows and about 50 columns like this dataframe1. date measurment_1 .... mesurement_n 1 2 3 .. .. .. n For further processing I need to check whether or not ncol and colnames are the same for all dataframes. Also I need to