Displaying 4 results from an estimated 4 matches for "scoyoc".
Did you mean:
scoop
2017 Aug 04
1
Restructuring Star Wars data from rwars package
...arse_result = T)
# Look at Anakin Skywalker's data
people$results[[1]]
people$results[[1]][1] # print his name
# To use them in R, I need to restructure them to a dataframe like they are
in dplyr
data("starwars")
glimpse(starwars)
Thanks for the help.
Cheers,
MVS
=====
Matthew Van Scoyoc
=====
Think SNOW!
[[alternative HTML version deleted]]
2012 Oct 11
4
Changing NA to 0 in selected columns of a dataframe
I've been beating my head on the table for hours now and don't understand why
this doesn't work. I have a dataframe that I want to change NAs to 0 for
some of the columns and not others. Consider this...
>#create dataframe
> A = c(1:5)
> B = c(6, 7, NA, NA, NA)
> C = c(NA, NA, 13, 14, 15)
> D = c(16:20)
> E = c(21, NA, NA, NA, 25)
> data = as.data.frame ( cbind (
2012 Nov 10
1
help with for loop to test for a condition in a vector
...lt = rep(NA, length(testfor))
>
> for (i in testfor){
+ v = any(x == testfor[i])
+ result[i] = v
+ }
>
> result
a b c d e
NA NA NA NA NA NA NA NA NA NA
I would like to get....
>result
TRUE TRUE TRUE FALSE FALSE
Thanks,
MVS
-----
MVS
=====
Matthew Van Scoyoc
Graduate Research Assistant, Ecology
Wildland Resources Department & Ecology Center
Quinney College of Natural Resources
Utah State University
Logan, UT
=====
Think SNOW!
--
View this message in context: http://r.789695.n4.nabble.com/help-with-for-loop-to-test-for-a-condition-in-a-vector-tp46...
2012 Oct 30
1
rJava Out of Memory Error
I'm running XLConnect 0.2-1 that depends on rJava 0.9-3. I am only able to
work with 2 workbooks before I get this error...
> SppRich = wb["SpeciesRichness"] # This command calls an Excel
> spreadsheet
Error: OutOfMemoryError (Java): GC overhead limit exceeded
I have tried...
> rm(list = ls())
... to clear the workspace, but it doesn't help. I am using RStudio