similar to: rows missing after dataset loaded to R

Displaying 20 results from an estimated 9000 matches similar to: "rows missing after dataset loaded to R"

2009 Aug 06
2
Re move all punctuations except commas
Dear all, I wanted to remove all punctuations except commas from a string. I used: gsub("[[:punct:]]", "", string) but I don't know how to exclude the commas ",". Anyone would kindly answer my basic question? -- View this message in context: http://www.nabble.com/Remove-all-punctuations-except-commas-tp24845721p24845721.html Sent from the R help mailing list
2009 Aug 06
1
problem with recording numeric output into another dataframe
dear all, I have two dataframes dataframe1 ID a b c dataframe2 ID value a;W 100 X;c 200 Y;Z 300 I wanted to match the IDs from the two dataframes and record the values into a new column of dataframe1 at the corresponding rows. This is what I expect: dataframe1 ID value a 100 b c 200 I tried doing it like this: for (i in seq(1:nrow(dataframe1))) {
2009 Aug 04
2
problem with pattern matching
dear all, I got a problem with pattern matching using grep. I extracted a list of characters from a data frame, and I tried to match this list of characters to a column from another data frame. In return, I got only one match, but there should be far more matches. Any ideas what has gone wrong? Another question, if I also want to match the whole of the elements against the non-initial parts of
2024 Apr 08
4
Exceptional slowness with read.csv
Greetings, I have a csv file of 76 fields and about 4 million records. I know that some of the records have errors - unmatched quotes, specifically.? Reading the file with readLines and parsing the lines with read.csv(text = ...) is really slow. I know that the first 2459465 records are good. So I try this: > startTime <- Sys.time() > first_records <- read.csv(file_name, nrows
2010 Dec 17
4
Changing a value in a particular row and column within a text file
Dear list, I need to change a value within a particular line of a plain text file with characters and numbers, and I haven't found any way of doing this by using R. What I have a is a file that doesn't have tabular data (so, I think that 'read.table' or 'read.delim' are not the right tools for this), but some text, and I now exactly the row that has to be modified and the
2009 Feb 10
1
error using R Commander for text file import
I am getting the following error on iMac running Mac OS 10.5.6; this occurs whenever I try to import a text file into R Commander: Error in splitCmd(command) : unbalanced quotes Thus, I am unable to import data into R Commander. Any suggestions as to how I might fix this error? I have gotten it many times with more than one installation of R 2.8.1 on this computer. Dwight Krehbiel Bethel
2008 Feb 28
4
unbalanced one-way ANOVA
Hi, I have an unbalanced dataset on which I would like to perform a one-way anova test using R (aov). According to Wannacott and Wannacott (1990) p. 333, one-way anova with unbalanced data is possible with a few modifications in the anova-calculations. The modified anova calculations should take into account different sample sizes and a modified definition of the average. I was wondering if the
2010 Jun 16
1
"Write.table" problem
Hi all, I have imported csv file for processing and exported as txt file (using * "write.table"* with sep = "\t", row.names = FALSE options) However, when I import this txt file in R (*"read.delim"* with header = TRUE, sep = "\t" options) the dimension (i.e number of rows) is inconsistent with the original file. Any solution to this problem would be
2007 Apr 03
2
Coding for contrasts in unbalanced designs
Dear list members, I want to use a GLM with an unbalanced factor and continuous variables. My factor F has 12 unbalanced levels:
2011 Apr 03
2
Unbalanced Anova: What is the best approach?
I have a three-way unbalanced ANOVA that I need to calculate (fixed effects plus interactions, no random effects). But word has it that aov() is good only for balanced designs. I have seen a number of different recommendations for working with unbalanced designs, but they seem to differ widely (car, nlme, lme4, etc.). So I would like to know what is the best or most usual way to go about working
2024 Apr 10
2
Exceptional slowness with read.csv
?s 06:47 de 08/04/2024, Dave Dixon escreveu: > Greetings, > > I have a csv file of 76 fields and about 4 million records. I know that > some of the records have errors - unmatched quotes, specifically. > Reading the file with readLines and parsing the lines with read.csv(text > = ...) is really slow. I know that the first 2459465 records are good. > So I try this: >
2001 Mar 10
3
Problem With Model.Tables Function
I am using R for the first time in one of my classes. My students have alerted me to a problem for which we have not found an answer. We find that some means returned by the model.tables function are not correct when missing data is present in analysis of variance problems. We have duplicated the problem using R 1.2.0, 1.2.1, and 1.2.2 under Windows 98 and several distributions of Linux (Redhat
2012 Oct 29
2
Two-way Random Effects with unbalanced data
Hi there, I am looking to fit a two-way random effects model to an *unblalanced* layout, y_ijk = mu + a_i + b_j + eps_ijk, i=1,...,R, j=1,...,C, k=1,...,K_ij. I am interested first of all in estimates for the variance components, sigsq_a, sigsq_b and sigsq_error. In the balanced case, there are simple (MM, MLE) estimates for these; In the unbalanced setup,
2002 Mar 08
3
Unbalanced ANOVA in R?
Hi all I'm trying to complete a textbook example originally designed for SPSS in R, and I therefore need to find out how to compute an unbalanced ANOVA in R. I did a search on the mailinglist archives an found a post by Prof. Ripley saying one should use the lme function for (among other things) unbalanced ANOVAs, but I have not been able to use this object. My code gives me an error.. Why
2009 Jun 23
1
nlme package - unbalanced data and Croissant (2008)
Dear listserv members, In Croissant (2008) “Panel Data Econometrics in R: The plm Package” the authors seem to indicate that the nlme package for R cannot correctly handle unbalanced panel data: “Moreover, economic panel datasets often happen to be unbalanced (i.e., they have a different number of observations between groups), which case needs some adaptation to the methods and is not
2004 Dec 01
2
unbalanced design
Hi all, I'm new to R and have the following problem: I have a 2 factor design (a has 2 levels, b has 3 levels). I have an object kidney.aov which is an aov(y ~ a*b), and when I ask for model.tables(kidney.avo, se=T) I get the following message along with the table of effects: Design is unbalanced - use se.contrast() for se's but the design is NOT unbalanced... each fator level
2004 Sep 13
2
(PR#7225) propogation of rounding error for t.tests with unequal sample sizes (PR#7225)
My apologies for not including the transcript in the original message: > xx <- rep(2.10,80) > groups.balanced <- as.factor(c(rep("one",40),rep("two",40))) > groups.unbalanced <- as.factor(c(rep("one",44),rep("two",36))) > t.test(xx ~ groups.balanced) Welch Two Sample t-test data: xx by groups.balanced t = 0, df = 78, p-value = 1
2011 May 21
2
unbalanced anova with subsampling (Type III SS)
Hello R-users, I am trying to obtain Type III SS for an ANOVA with subsampling. My design is slightly unbalanced with either 3 or 4 subsamples per replicate. The basic aov model would be: fit <- aov(y~x+Error(subsample)) But this gives Type I SS and not Type III. But, using the drop() option: drop1(fit, test="F") I get an error message: "Error in
2010 Oct 25
3
question in using nlme and lme4 for unbalanced data
Hello: I have an two factorial random block design. It's a ecology experiment. My two factors are, guild removal and enfa removal. Both are two levels, 0 (no removal), 1 (removal). I have 5 blocks. But within each block, it's unbalanced at plot level because I have 5 plots instead of 4 in each block. Within each block, I have 1 plot with only guild removal, 1 plot with only enfa removal,
2007 Sep 14
2
unbalanced effects in aov
Hi, I have been having some trouble using aov to do an anova, probably because I'm not understanding how to use this function correctly. For some reason it always tells me that "Estimated effects may be unbalanced", though I'm not sure what this means. Is the formula I am using written incorrectly? Below is the code I am using along with the data: > my.data response