search for: read_tabl

Displaying 9 results from an estimated 9 matches for "read_tabl".

Did you mean: read_table
1998 Apr 18
1
R-beta: Read_Table?
Hello All ! Can anybody help me with simple question, please? I have tried to input some data to R and I use the read.table function. The exactly form that I type was: > test1 <- read.table("D:\Rstat\Work\Abt.data",header=T,sep=",") I've got the response from R: Error: "scan" can't open file The file that I specify above "Abt.data" is a
2005 Nov 02
2
Anything like associative arrays in R?
...n languages with associative arrays, the typical way to do this is to define a 2-d associative array; e.g. in Perl one could do for $i ( 'foo', 'bar', 'baz' ) { for $j ( 'eenie', 'meenie', 'minie', 'moe' ) { $table{ $i }{ $j } = read_table( "path/to/data/${i}_${j}.dat" ); } } How does one do this in R? In particular, what's the equivalent of the above in R? Most importantly, how could I have found out this answer from the R docs? Many thanks in advance, kj
2010 Feb 22
4
Alternatives to linear regression with multiple variables
I wonder if someone can give some pointers on alternatives to linear regression (e.g. Loess) when dealing with multiple variables. Taking any simple table with three variables, you can very easily get the intercept and coefficients with: summary(lm(read_table)) For obvious reasons, the coefficients in a multiple regression are quite different from what you get if you calculate regressions for the single variables separately. Alternative approaches such as Loess seem straightforward when you have only one variable, and have the advantage that they can...
2018 Jan 02
0
httr::content without message
Ahoy! That's a message generated by the readr::read_table() function (or it's friends). You can suppress it a number of ways, but this should work as httr::content() will pass through arguments, like col_types = cols(), to the file reader. junk <- httr::content(r1, col_types = cols()) See more here... https://blog.rstudio.com/2016/08/05/readr-...
2016 May 17
2
buscar y reemplazar tabs dentro de un archivo
Estimado Eric Las filas que faltan, ¿son filas enteras, donde todo es valor NA o ?? en un data.frame? Porque si es así podrías importar todo y luego buscar (filtrar) los que no son NA. Copio y pego un código que utilizo en un trabajo, posiblemente le sea útil. Tratamientos$Tratamiento[Tratamientos$Tratamiento == ""] <- NA # asignar NA a las celdas vacías Tratamientos<-
2018 Jan 02
1
httr::content without message
...r rather than putting the url in any of the read.csv or read_csv type code allows me greater control if the request fails. Thanks again, -Roy > On Jan 2, 2018, at 9:44 AM, Ben Tupper <btupper at bigelow.org> wrote: > > Ahoy! > > That's a message generated by the readr::read_table() function (or it's friends). You can suppress it a number of ways, but this should work as httr::content() will pass through arguments, like col_types = cols(), to the file reader. > > junk <- httr::content(r1, col_types = cols()) > > See more here... > > https://blog...
2018 Jan 02
4
httr::content without message
Hi All: I am using httr to download files form a service, in this case a .csv file. When I use httr::content on the result, I get a message. Since this will be in a package. I want to suppress the message, but haven't figured out how to do so. The following should reproduce the result: myURL <-
2015 Apr 19
5
Como leer una BD con una estructura inadecuada
Estimado Javier: Disculpe mi imprecision al hablar de base de datos en este caso, en realidad es un conjunto interesante de datos pero no tiene exactamente estandar de BD .. en fin ... este conjunto de datos lo baje directamente de la pagina de la FIDE, que es la federacion internacional de ajedrez, en http://ratings.fide.com/download.phtml, es decir, estos datos son la BD original. Los
2015 Apr 18
4
Como leer una BD con una estructura inadecuada
Estimados, tengo el siguiente problema: Tengo una BD de 19 columnas y aprox 500 mil filas, la que tiene muchas celdas vacias y esta separada con espacios para hacer coincidir los datos bajo los encabezados. Mi problema es que al tratar de importar a R la BD no se como tratar con los espacios vacios cuando se trata de una columna de numeros (para el texto puse na.strings = "NA") y