search for: rlabp

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

1999 Nov 10
1
read.table problems
Yesterday I asked for help about read.table with a CSV file. I received the following help. As always many thanks for the prompt responses. Now I load my csv file in a text editor ( pfe) and delete all spaces. My original mail is at the end. From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> Do you have spaces before the commas in your file? > Yes, number , space,
1999 Nov 10
1
read.table problems
Yesterday I asked for help about read.table with a CSV file. I received the following help. As always many thanks for the prompt responses. Now I load my csv file in a text editor ( pfe) and delete all spaces. My original mail is at the end. From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> Do you have spaces before the commas in your file? > Yes, number , space,
2009 Aug 05
3
import data into R
...ge the pachage but now i have this massage  read.table("c:/TOTAL.xls",h=T) [1] ÐÏ.à.. <0 rows> (or 0-length row.names) Warning messages: 1: In read.table("c:/TOTAL.xls", h = T) :   incomplete final line found by readTableHeader on 'c:/TOTAL.xls' 2: In if (!header) rlabp <- FALSE :   the condition has length > 1 and only the first element will be used 3: In if (header) { :   the condition has length > 1 and only the first element will be used thank you [[alternative HTML version deleted]]
2004 Jul 28
1
read.table() and NULL for colClasses
...adtable.new.R readtable.R 117,123d116 < # Skip NULL columns in scan() < void <- sapply(colClasses, FUN=identical, "NULL") | < sapply(colClasses, FUN=is.null) < # If all (data) columns are NULL, return empty data frame. < if (sum(!void) <= 1*rlabp) < return(data.frame()) < what[void] <- list(NULL) 131c124 < nlines <- length(data[[which(!void)[1]]]) --- > nlines <- length(data[[1]]) 161c154 < for (i in (1:cols)[!known & !void]) { --- > for (i in 1:cols) { 171,178d163 < # Skipped...
2019 Mar 22
3
[PATCH 1/2] readtable: add hook for type conversions per column
...Convert = NULL, fileEncoding = "", encoding = "unknown", text, skipNul = FALSE) { if (missing(file) && !missing(text)) { @@ -226,9 +227,18 @@ function(file, header = FALSE, sep = "", quote = "\"'", dec = ".", if(rlabp) do[1L] <- FALSE # don't convert "row.names" for (i in (1L:cols)[do]) { data[[i]] <- - if (is.na(colClasses[i])) + if (is.na(colClasses[i])) { + tmp <- NULL + if (!is.null(colConvert)) + # at...
2009 Jun 14
2
read.csv
If read.csv's colClasses= argument is NOT used then read.csv accepts double quoted numerics: 1: > read.csv(stdin()) 0: A,B 1: "1",1 2: "2",2 3: A B 1 1 1 2 2 2 However, if colClasses is used then it seems that it does not: > read.csv(stdin(), colClasses = "numeric") 0: A,B 1: "1",1 2: "2",2 3: Error in scan(file, what, nmax, sep,