Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Search results

  1. A

    DATA SCIENCE WITH R | Nov 28 - Jan 10 | Sabyasanchi (2020)

    we will try to google & find a way , if any external package can help or so.. i am not sure as of now
  2. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    we need to categorize a complaint type by adding a new column.. I think it has to be done that way.
  3. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    Hi Sir, I am trying to download the e-commerce ( project ) data set using the link provided in smiplilearn & when I download & unzip the file , the file is corrupted.. below is the link provided by simplilearn ttps://github.com/Simplilearn-Edu/Data-Science-with-R.git could you kindly help...
  4. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    --------------------------------------------------------- HI prem, if you want to break then break @ 2 , so it will return 1, when you break @1 there is no output to print, also you code has error in this part if A (val == 1) ------------------------------------------------ check this out A <-...
  5. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    ------------------------------------------------------------------- Try this A <- c(1:5) for (val in A){ if ( val == 1){ next } { print(val) }} well when you say break R understands it to break @1
  6. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    when I load the csv file or txt file , I get this error. can some one help > load("~/live/USA_cars_datasets.csv.xlsx") Error in load("~/live/USA_cars_datasets.csv.xlsx") : bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning message: file...
  7. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    @Sabyasachi Tripathy Hi - c(1,2) didn't work, I tried the below code & it worked .perfect v=c(1:5) for (val in v ) { if ((val == 1) || (val ==2)) { next } print(val) } it worked, thank you. let me know if there is any other way..
  8. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    During session this was given Question : is this code for replacing the first value in vector or to add.. in my o/p it replaced the first value with the new one. any comments?? # add a value to the beginning of a vector . m1 <- c("medium", "low", "high", "low", "medium", "medium") m1 m1[1] <-...
  9. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    Friends , In addition to vector sort function , I found out how to sort a vector in descending & ascending , interesting try this v <- c(1,2,3,4,9) print(sort(v , decreasing = TRUE));print(sort(v , decreasing = FALSE))
  10. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    Hi All plz look at this code & advise what action this code does Does i means the index in the vector v <- c(1,2,3,4,9) for (i in 1:length(v)) { print(v) }
  11. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    Hi I have this code for next statement. v=c(1:5) for (val in 1:5) { if (val == 1) { next } print(val) } what is the code to give a next for 2 values in V... I tried using if ( val == 1,2 ) also used & operator, could you help me with the code
  12. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    Hi Can youhelp me what is wrong with this code v <- c(1,2) v1 <- c(21,22,23,24) column.names <-c("col1","col2") row.names <- c("row1","row2") matrix.names <- c("Mat1","Mat2") result <-array(c(v,v1), dim = c(1,2),dimnames = list(row.names,column.names,matrix.names)) print(result) I am not...
  13. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    what does this error refer to Error: unexpected '}' in:
  14. A

    Data science with R( May 2nd - May 31st,2020)| Sabyasachi

    Hi Sabyasachi - The code I was talking in the session is working now. the actual is below a<-c(1:5) a for (val in a){(e<- a+1)} e o/p : [1] 2 3 4 5 6
Top